mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-17 23:03:46 +01:00
Add property 'IsStartedWithAdminInterface' to 'IWireMockServer' (#931)
* Add property 'IsStartedWithAdminInterface' to 'IWireMockServer' * update tests * .
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user