瀏覽代碼

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]