mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 01:38:53 +02:00
WireMock.Net.TUnitTests / 10
This commit is contained in:
@@ -220,7 +220,7 @@ public partial class WireMockServerTests
|
||||
foreach (var address in IPv4)
|
||||
{
|
||||
// Act
|
||||
var response = await new HttpClient().GetStringAsync("http://" + address + ":" + server.Ports[0] + "/foo").ConfigureAwait(false);
|
||||
var response = await new HttpClient().GetStringAsync("http://" + address + ":" + server.Ports[0] + "/foo");
|
||||
|
||||
// Assert
|
||||
response.Should().Be("x");
|
||||
@@ -245,7 +245,7 @@ public partial class WireMockServerTests
|
||||
foreach (var address in IPv6)
|
||||
{
|
||||
// Act
|
||||
var response = await new HttpClient().GetStringAsync("http://[" + address + "]:" + server.Ports[0] + "/foo").ConfigureAwait(false);
|
||||
var response = await new HttpClient().GetStringAsync("http://[" + address + "]:" + server.Ports[0] + "/foo");
|
||||
|
||||
// Assert
|
||||
response.Should().Be("x");
|
||||
@@ -358,7 +358,7 @@ public partial class WireMockServerTests
|
||||
async Task<long> ExecuteTimedRequestAsync()
|
||||
{
|
||||
watch.Reset();
|
||||
await httClient.GetStringAsync("http://localhost:" + server.Ports[0] + "/foo").ConfigureAwait(false);
|
||||
await httClient.GetStringAsync("http://localhost:" + server.Ports[0] + "/foo");
|
||||
return watch.ElapsedMilliseconds;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user