mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-21 16:01:18 +02:00
QueryStringParserTests
This commit is contained in:
@@ -188,6 +188,20 @@ namespace WireMock.Net.Tests.Util
|
|||||||
result["key"].Should().Equal(new WireMockList<string>(new[] { "value", "anotherValue" }));
|
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]
|
[Fact]
|
||||||
public void Parse_WithComplex()
|
public void Parse_WithComplex()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user