QueryStringParserTests

This commit is contained in:
Stef Heyenrath
2019-06-15 10:26:39 +02:00
parent fdc433f0ce
commit f764881622

View File

@@ -188,6 +188,20 @@ namespace WireMock.Net.Tests.Util
result["key"].Should().Equal(new WireMockList<string>(new[] { "value", "anotherValue" }));
}
[Fact]
public void Parse_With1ParamContainingSpacesAndEqualSign()
{
// Assign
string query = "?q=SELECT Id from User where username='user@gmail.com'";
// Act
var result = QueryStringParser.Parse(query);
// Assert
result.Count.Should().Be(1);
result["q"].Should().Equal(new WireMockList<string>("SELECT Id from User where username='user@gmail.com'"));
}
[Fact]
public void Parse_WithComplex()
{