Skip to content

Commit ce17fdd

Browse files
committed
Fixes #3836. SetupFakeDriver sometimes causes failure in the unit test.
1 parent d4d0675 commit ce17fdd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

UnitTests/TestHelpers.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,8 @@ public override void After (MethodInfo methodUnderTest)
197197
// Turn off diagnostic flags in case some test left them on
198198
View.Diagnostics = ViewDiagnosticFlags.Off;
199199

200-
if (Application.Driver is { })
201-
{
202-
((FakeDriver)Application.Driver).Rows = 25;
203-
((FakeDriver)Application.Driver).Cols = 25;
204-
((FakeDriver)Application.Driver).End ();
205-
}
206-
207-
Application.Driver = null;
200+
Application.ResetState (true);
201+
Assert.Equal (new (0, 0, 2048, 2048), Application.Screen);
208202
base.After (methodUnderTest);
209203
}
210204

0 commit comments

Comments
 (0)