mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-12-06 15:06:45 +01:00
preload
This commit is contained in:
1 parent
acbc33f04e
commit
ef93f7417d
7 files changed
+79
-3
No files matched your search
@@ -33,6 +33,36 @@ public class WireMockServerSettingsParserTests
|
||||
settings!.AdminPath.Should().Be("/__admin");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TryParseArguments_With_PreloadMimeKitUtils()
|
||||
{
|
||||
// Act
|
||||
var result = WireMockServerSettingsParser.TryParseArguments(new[]
|
||||
{
|
||||
"--PreloadMimeKitUtils", "true"
|
||||
}, null, out var settings);
|
||||
|
||||
// Assert
|
||||
result.Should().BeTrue();
|
||||
settings.Should().NotBeNull();
|
||||
settings!.PreloadMimeKitUtils.Should().BeTrue();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TryParseArguments_With_PreloadProtoBufUtils()
|
||||
{
|
||||
// Act
|
||||
var result = WireMockServerSettingsParser.TryParseArguments(new[]
|
||||
{
|
||||
"--PreloadProtoBufUtils", "true"
|
||||
}, null, out var settings);
|
||||
|
||||
// Assert
|
||||
result.Should().BeTrue();
|
||||
settings.Should().NotBeNull();
|
||||
settings!.PreloadProtoBufUtils.Should().BeTrue();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TryParseArguments_With_ActivityTracingEnabled_ShouldParseOptions()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user