mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
26 lines
684 B
C#
26 lines
684 B
C#
using Xunit;
|
|
|
|
namespace TerminalGuiFluentTesting;
|
|
|
|
public static class XunitContextExtensions
|
|
{
|
|
public static GuiTestContext AssertTrue (this GuiTestContext context, bool? condition)
|
|
{
|
|
context.Then (
|
|
() =>
|
|
{
|
|
Assert.True (condition);
|
|
});
|
|
return context;
|
|
}
|
|
public static GuiTestContext AssertEqual (this GuiTestContext context, object? expected, object? actual)
|
|
{
|
|
context.Then (
|
|
() =>
|
|
{
|
|
Assert.Equal (expected,actual);
|
|
});
|
|
return context;
|
|
}
|
|
}
|