namespace TerminalGuiFluentTesting; /// /// Entry point to fluent assertions. /// public static class With { /// /// Entrypoint to fluent assertions /// /// /// /// Which v2 testDriver to use for the test /// /// public static GuiTestContext A (int width, int height, TestDriver testDriver, TextWriter? logWriter = null) where T : Toplevel, new () { return new (() => new T (), width, height,testDriver,logWriter); } /// /// Overload that takes a function to create instance after application is initialized. /// /// /// /// /// /// public static GuiTestContext A (Func toplevelFactory, int width, int height, TestDriver testDriver) { return new (toplevelFactory, width, height, testDriver); } /// /// The global timeout to allow for any given application to run for before shutting down. /// public static TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds (30); }