Fixes #3836. SetupFakeDriver sometimes causes failure in the unit test.

This commit is contained in:
BDisp
2024-12-03 22:35:25 +00:00
parent d4d0675194
commit ce17fddd9c

View File

@@ -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);
}