소스 검색

Added simple Arragement unit test

Tig Kindel 1 년 전
부모
커밋
efaaec41c2
2개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      UnitTests/View/ArrangementTests.cs
  2. 7 0
      UnitTests/Views/ToplevelTests.cs

+ 17 - 0
UnitTests/View/ArrangementTests.cs

@@ -0,0 +1,17 @@
+using System.Text;
+using Xunit.Abstractions;
+
+namespace Terminal.Gui.ViewTests;
+
+public class ArrangementTests (ITestOutputHelper output)
+{
+    private readonly ITestOutputHelper _output = output;
+
+    // Test that TopResizable and Movable are mutually exclusive and Movable wins
+    [Fact]
+    public void TopResizableAndMovableMutuallyExclusive ()
+    {
+      // TODO: Write test.
+    }
+
+}

+ 7 - 0
UnitTests/Views/ToplevelTests.cs

@@ -25,6 +25,13 @@ public class ToplevelTests
         Assert.False (top.IsOverlapped);
     }
 
+    [Fact]
+    public void Arrangement_Is_Movable ()
+    {
+        var top = new Toplevel ();
+        Assert.Equal (ViewArrangement.Movable, top.Arrangement);
+    }
+
 #if BROKE_IN_2927
     // BUGBUG: The name of this test does not match what it does. 
     [Fact]