Fix compilation errors in tests and disabled border (in tests)

This commit is contained in:
tznind
2023-01-01 10:02:31 +00:00
parent 4465c42671
commit be4474ad3f

View File

@@ -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 ();