瀏覽代碼

Added one more condition to be consistent with others.

BDisp 2 年之前
父節點
當前提交
c6183c7658
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      UnitTests/Core/LayoutTests.cs

+ 4 - 0
UnitTests/Core/LayoutTests.cs

@@ -47,6 +47,10 @@ namespace Terminal.Gui.CoreTests {
 
 
 			var exception = Record.Exception (root.LayoutSubviews);
 			var exception = Record.Exception (root.LayoutSubviews);
 			Assert.Null (exception);
 			Assert.Null (exception);
+
+			sub2.Width = Dim.Width (sub1);
+			exception = Record.Exception (root.LayoutSubviews);
+			Assert.Null (exception);
 		}
 		}
 
 
 		[Fact]
 		[Fact]