From be4474ad3f13ef944e0798fd0e805d84c59ef3dc Mon Sep 17 00:00:00 2001 From: tznind Date: Sun, 1 Jan 2023 10:02:31 +0000 Subject: [PATCH] Fix compilation errors in tests and disabled border (in tests) --- UnitTests/SplitContainerTests.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/UnitTests/SplitContainerTests.cs b/UnitTests/SplitContainerTests.cs index 64e6c4f5e..6e76fb0e1 100644 --- a/UnitTests/SplitContainerTests.cs +++ b/UnitTests/SplitContainerTests.cs @@ -150,7 +150,7 @@ namespace UnitTests { splitContainer.EnsureFocus (); splitContainer.FocusFirst (); - splitContainer.Panel1MinSize = 6; + splitContainer.Panels [0].MinSize = 6; // distance is too small (below 6) splitContainer.SplitterDistance = 2; @@ -237,7 +237,7 @@ namespace UnitTests { splitContainer.Orientation = Terminal.Gui.Graphs.Orientation.Horizontal; splitContainer.EnsureFocus (); splitContainer.FocusFirst (); - splitContainer.Panel1MinSize = 1; + splitContainer.Panels [0].MinSize = 1; // 0 should not be allowed because it brings us below minimum size of Panel1 splitContainer.SplitterDistance = 0; @@ -298,8 +298,11 @@ namespace UnitTests { Height = 3, }; - container.Panel1.Add (new Label (new string ('1', 100))); - container.Panel2.Add (new Label (new string ('2', 100))); + container.Border.DrawMarginFrame = false; + container.Border.BorderStyle = BorderStyle.None; + + container.Panels [0].Add (new Label (new string ('1', 100))); + container.Panels [1].Add (new Label (new string ('2', 100))); Application.Top.Add (container); container.ColorScheme = new ColorScheme ();