Skip to content

Commit

Permalink
QueryStringParserTests
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Jun 15, 2019
1 parent fdc433f commit f764881
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/WireMock.Net.Tests/Util/QueryStringParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,20 @@ public void Parse_WithMultipleParamWithSameKey()
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='[email protected]'";

// 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='[email protected]'"));
}

[Fact]
public void Parse_WithComplex()
{
Expand Down

0 comments on commit f764881

Please sign in to comment.