diff --git a/UnitTests/Views/WindowTests.cs b/UnitTests/Views/WindowTests.cs index eeae82a90..3c1fbf13a 100644 --- a/UnitTests/Views/WindowTests.cs +++ b/UnitTests/Views/WindowTests.cs @@ -26,6 +26,7 @@ public class WindowTests Exception exception = Record.Exception (() => win.NewKeyDownEvent (KeyCode.AltMask)); Assert.Null (exception); + top.Dispose (); } [Fact] @@ -119,6 +120,7 @@ public class WindowTests └──────────────────┘", _output ); + top.Dispose (); } [Fact] @@ -224,5 +226,6 @@ public class WindowTests Assert.True (view1.HasFocus); Assert.False (win2.HasFocus); Assert.False (view2.HasFocus); + win1.Dispose (); } }