Files
WireMock.Net-wiremock/test/WireMock.Net.Testcontainers.ConsoleApp/Program.cs
T
Stef Heyenrath 96c5fcae8e Test Testcontainers ConsoleApp on Linux (#1547)
* Test Testcontainers ConsoleApp on Linux

* fix
2026-11-20 17:48:55 +01:00

34 lines
753 B
C#

// Copyright © WireMock.Net
using WireMock.Net.Testcontainers;
namespace WireMock.Net.TestContainers.ConsoleApp;
/// <summary>
/// Test if WireMock.Net.Testcontainers is compatible with the latest version of Testcontainers for .NET
/// </summary>
internal class Program
{
private static async Task<int> Main(string[] args)
{
try
{
await TestAsync();
return 0;
}
catch (Exception ex)
{
Console.Error.WriteLine(ex);
return 1;
}
}
private static async Task TestAsync()
{
var builder = new WireMockContainerBuilder()
.WithLinuxImage()
.WithWatchStaticMappings(true);
_ = builder.Build();
}
}