mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Fixes #4391. Weird situation where ForceDriver with args doesn't persists on open scenario
* Prevents change ForceDriver if app it's already initialized and allowing also initialize with driver instead of only by driver name.
* Add dispose into FakeDriverBase and reset ForceDriver
* Moving test to Application folder
* Fix unit test
* Remove unnecessary GlobalTestSetup
* Add GC.SuppressFinalize
* Revert "Add GC.SuppressFinalize"
This reverts commit 2bd7cd7791.
* Reset MouseGrabView
* Avoid CI warnings
* Add GlobalTestSetup in all test that use Application
* Trying to fix unit test
* Reverting scope changes
* Remove UICatalog testing Run
* Force re-run CI test
* Fix merge errors
* Fix ansi for the red background color code
* Fix more ANSI color code unit tests
---------
Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
@@ -24,8 +24,8 @@ public class GlobalTestSetup : IDisposable
|
||||
// Reset application state just in case a test changed something.
|
||||
// TODO: Add an Assert to ensure none of the state of Application changed.
|
||||
// TODO: Add an Assert to ensure none of the state of ConfigurationManager changed.
|
||||
CheckDefaultState ();
|
||||
Application.ResetState (true);
|
||||
CheckDefaultState ();
|
||||
}
|
||||
|
||||
// IMPORTANT: Ensure this matches the code in Init_ResetState_Resets_Properties
|
||||
@@ -43,7 +43,7 @@ public class GlobalTestSetup : IDisposable
|
||||
Assert.Null (Application.Mouse.MouseGrabView);
|
||||
|
||||
// Don't check Application.ForceDriver
|
||||
// Assert.Empty (Application.ForceDriver);
|
||||
Assert.Empty (Application.ForceDriver);
|
||||
// Don't check Application.Force16Colors
|
||||
//Assert.False (Application.Force16Colors);
|
||||
Assert.Null (Application.Driver);
|
||||
|
||||
Reference in New Issue
Block a user