Add property 'IsStartedWithAdminInterface' to 'IWireMockServer' (#931)

* Add property 'IsStartedWithAdminInterface' to 'IWireMockServer'

* update tests

* .
This commit is contained in:
Stef Heyenrath
2023-05-06 13:12:00 +02:00
committed by GitHub
parent ccd8026884
commit d29f3e81f3
3 changed files with 36 additions and 1 deletions

View File

@@ -34,6 +34,32 @@ public partial class WireMockServerTests
_testOutputHelper = testOutputHelper;
}
[Fact]
public void WireMockServer_Start()
{
// Act
var server = WireMockServer.Start();
// Assert
server.IsStarted.Should().BeTrue();
server.IsStartedWithAdminInterface.Should().BeFalse();
server.Stop();
}
[Fact]
public void WireMockServer_StartWithAdminInterface()
{
// Act
var server = WireMockServer.StartWithAdminInterface();
// Assert
server.IsStarted.Should().BeTrue();
server.IsStartedWithAdminInterface.Should().BeTrue();
server.Stop();
}
[Fact]
public async Task WireMockServer_Should_Reset_LogEntries()
{