mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Fixes #3836. SetupFakeDriver sometimes causes failure in the unit test.
This commit is contained in:
@@ -197,14 +197,8 @@ public class SetupFakeDriverAttribute : BeforeAfterTestAttribute
|
||||
// Turn off diagnostic flags in case some test left them on
|
||||
View.Diagnostics = ViewDiagnosticFlags.Off;
|
||||
|
||||
if (Application.Driver is { })
|
||||
{
|
||||
((FakeDriver)Application.Driver).Rows = 25;
|
||||
((FakeDriver)Application.Driver).Cols = 25;
|
||||
((FakeDriver)Application.Driver).End ();
|
||||
}
|
||||
|
||||
Application.Driver = null;
|
||||
Application.ResetState (true);
|
||||
Assert.Equal (new (0, 0, 2048, 2048), Application.Screen);
|
||||
base.After (methodUnderTest);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user