With.cs 684 B

12345678910111213141516171819202122
  1. using Terminal.Gui;
  2. namespace TerminalGuiFluentTesting;
  3. /// <summary>
  4. /// Entry point to fluent assertions.
  5. /// </summary>
  6. public static class With
  7. {
  8. /// <summary>
  9. /// Entrypoint to fluent assertions
  10. /// </summary>
  11. /// <param name="width"></param>
  12. /// <param name="height"></param>
  13. /// <returns></returns>
  14. public static GuiTestContext<T> A<T> (int width, int height) where T : Toplevel, new () { return new (width, height); }
  15. /// <summary>
  16. /// The global timeout to allow for any given application to run for before shutting down.
  17. /// </summary>
  18. public static TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds (30);
  19. }