Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions Refit.Tests/RestService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,6 @@ public interface IQueryApi
[Get("/foo?=")]
Task EmptyQueryKeyAndValue();

[Get("/foo?&&&")]
Task QueryManyAndSymbol();

[Get("/foo?key,=value,&key1(=value1(")]
Task UnescapedQuery();

Expand Down Expand Up @@ -2375,24 +2372,6 @@ public async Task EmptyQueryKeyAndValueShouldBeEmpty()
mockHttp.VerifyNoOutstandingExpectation();
}

[Fact]
public async Task QueryAndSymbolShouldBeEmpty()
{
var mockHttp = new MockHttpMessageHandler();
var settings = new RefitSettings { HttpMessageHandlerFactory = () => mockHttp, };

mockHttp
.Expect(HttpMethod.Get, "https://github.com/foo?&&&")
.WithExactQueryString("&&&")
.Respond(HttpStatusCode.OK);

var fixture = RestService.For<IQueryApi>("https://github.com", settings);

await fixture.QueryManyAndSymbol();

mockHttp.VerifyNoOutstandingExpectation();
}

[Fact]
public async Task UnescapedQueryShouldBeEscaped()
{
Expand Down
Loading