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 : IRunnable, new() { return new (() => new T () { //Id = $"{typeof (T).Name}" }, width, height, testDriver, logWriter, Timeout); } /// /// Overload that takes a function to create instance after application is initialized. /// /// /// /// /// /// /// public static GuiTestContext A (Func runnableFactory, int width, int height, TestDriver testDriver, TextWriter? logWriter = null) { return new (runnableFactory, width, height, testDriver, logWriter, Timeout); } /// /// The global timeout to allow for any given application to run for before shutting down. /// public static TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds (30); }