using Terminal.Gui;
namespace TerminalGuiFluentTesting;
///
/// Entry point to fluent assertions.
///
public static class With
{
///
/// Entrypoint to fluent assertions
///
///
///
/// Which v2 v2TestDriver to use for the test
///
public static GuiTestContext A (int width, int height, V2TestDriver v2TestDriver) where T : Toplevel, new ()
{
return new (() => new T (), width, height,v2TestDriver);
}
///
/// Overload that takes an existing instance
/// instead of creating one.
///
///
///
///
///
///
public static GuiTestContext A (Toplevel toplevel, int width, int height, V2TestDriver v2TestDriver)
{
return new (()=>toplevel, width, height, v2TestDriver);
}
///
/// The global timeout to allow for any given application to run for before shutting down.
///
public static TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds (30);
}