浏览代码

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);
 			Assert.Null (exception);
+
+			sub2.Width = Dim.Width (sub1);
+			exception = Record.Exception (root.LayoutSubviews);
+			Assert.Null (exception);
 		}
 
 		[Fact]