浏览代码

Fixed WindowTests

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));
         Exception exception = Record.Exception (() => win.NewKeyDownEvent (KeyCode.AltMask));
         Assert.Null (exception);
         Assert.Null (exception);
+        top.Dispose ();
     }
     }
 
 
     [Fact]
     [Fact]
@@ -119,6 +120,7 @@ public class WindowTests
 └──────────────────┘",
 └──────────────────┘",
                                                       _output
                                                       _output
                                                      );
                                                      );
+        top.Dispose ();
     }
     }
 
 
     [Fact]
     [Fact]
@@ -224,5 +226,6 @@ public class WindowTests
         Assert.True (view1.HasFocus);
         Assert.True (view1.HasFocus);
         Assert.False (win2.HasFocus);
         Assert.False (win2.HasFocus);
         Assert.False (view2.HasFocus);
         Assert.False (view2.HasFocus);
+        win1.Dispose ();
     }
     }
 }
 }