mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 23:33:47 +01:00
Handles case where parameter value contains == (#316)
This commit is contained in:
committed by
Stef Heyenrath
parent
a6c6cfee42
commit
d71c48f8ac
@@ -146,6 +146,20 @@ namespace WireMock.Net.Tests.Util
|
||||
result["key"].Should().Equal(new WireMockList<string>("value=what"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_With1ParamWithTwoEqualSigns()
|
||||
{
|
||||
// Assign
|
||||
string query = "?key=value==what";
|
||||
|
||||
// Act
|
||||
var result = QueryStringParser.Parse(query);
|
||||
|
||||
// Assert
|
||||
result.Count.Should().Be(1);
|
||||
result["key"].Should().Equal(new WireMockList<string>("value==what"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WithMultipleParamWithSameKeySeparatedBySemiColon()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user