Refactored UI Catalog and added tons of unit tests

This commit is contained in:
Charlie Kindel
2022-11-03 15:58:15 -06:00
parent 0e136b17cc
commit bf1ed31281
51 changed files with 1977 additions and 1664 deletions

View File

@@ -66,7 +66,7 @@ namespace UICatalog {
// Close after a short period of time
var token = Application.MainLoop.AddTimeout (TimeSpan.FromMilliseconds (100), closeCallback);
scenario.Init (Application.Top, Colors.Base);
scenario.Init (Colors.Base);
scenario.Setup ();
scenario.Run ();
Application.Shutdown ();
@@ -121,7 +121,7 @@ namespace UICatalog {
Assert.Equal (Key.CtrlMask | Key.Q, args.KeyEvent.Key);
};
generic.Init (Application.Top, Colors.Base);
generic.Init (Colors.Base);
generic.Setup ();
// There is no need to call Application.Begin because Init already creates the Application.Top
// If Application.RunState is used then the Application.RunLoop must also be used instead Application.Run.