Tig 1 рік тому
батько
коміт
349f1f6459
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      UnitTests/Views/WindowTests.cs

+ 3 - 0
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 ();
     }
 }