浏览代码

Fixed DrawTests

Tig 1 年之前
父节点
当前提交
577ef9edad
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      UnitTests/View/DrawTests.cs

+ 7 - 1
UnitTests/View/DrawTests.cs

@@ -268,6 +268,7 @@ public class DrawTests (ITestOutputHelper _output)
         TestHelpers.AssertDriverContentsWithFrameAre (expectedOutput, _output);
         TestHelpers.AssertDriverContentsWithFrameAre (expectedOutput, _output);
 
 
         TestHelpers.AssertDriverContentsAre (expectedOutput, _output);
         TestHelpers.AssertDriverContentsAre (expectedOutput, _output);
+        top.Dispose ();
 
 
         // This test has nothing to do with color - removing as it is not relevant and fragile
         // This test has nothing to do with color - removing as it is not relevant and fragile
     }
     }
@@ -327,6 +328,7 @@ public class DrawTests (ITestOutputHelper _output)
 
 
         Application.End (rsDiag);
         Application.End (rsDiag);
         Application.End (rsTop);
         Application.End (rsTop);
+        top.Dispose ();
     }
     }
 
 
     [Fact]
     [Fact]
@@ -387,6 +389,7 @@ public class DrawTests (ITestOutputHelper _output)
                                                Application.Driver,
                                                Application.Driver,
                                                Colors.ColorSchemes ["Base"].Normal
                                                Colors.ColorSchemes ["Base"].Normal
                                               );
                                               );
+        top.Dispose ();
     }
     }
 
 
     [Fact]
     [Fact]
@@ -647,6 +650,7 @@ public class DrawTests (ITestOutputHelper _output)
         content.Y = 0;
         content.Y = 0;
         Application.Refresh ();
         Application.Refresh ();
         TestHelpers.AssertDriverContentsWithFrameAre ("", _output);
         TestHelpers.AssertDriverContentsWithFrameAre ("", _output);
+        top.Dispose ();
     }
     }
 
 
     [Fact]
     [Fact]
@@ -726,6 +730,7 @@ public class DrawTests (ITestOutputHelper _output)
         content.Y = 0;
         content.Y = 0;
         Application.Refresh ();
         Application.Refresh ();
         TestHelpers.AssertDriverContentsWithFrameAre ("", _output);
         TestHelpers.AssertDriverContentsWithFrameAre ("", _output);
+        top.Dispose ();
     }
     }
 
 
     [Fact]
     [Fact]
@@ -849,6 +854,7 @@ public class DrawTests (ITestOutputHelper _output)
         content.Y = 0;
         content.Y = 0;
         Application.Refresh ();
         Application.Refresh ();
         TestHelpers.AssertDriverContentsWithFrameAre ("", _output);
         TestHelpers.AssertDriverContentsWithFrameAre ("", _output);
+        top.Dispose ();
     }
     }
 
 
     [Theory]
     [Theory]
@@ -898,7 +904,7 @@ public class DrawTests (ITestOutputHelper _output)
         TestHelpers.AssertDriverContentsWithFrameAre (expected, _output);
         TestHelpers.AssertDriverContentsWithFrameAre (expected, _output);
 
 
         TestHelpers.AssertDriverContentsAre (expected, _output);
         TestHelpers.AssertDriverContentsAre (expected, _output);
-
+        top.Dispose ();
         // This test has nothing to do with color - removing as it is not relevant and fragile
         // This test has nothing to do with color - removing as it is not relevant and fragile
     }
     }