Fixes #2486 - Removes old Border and fixes a litany of related things (#2525)

* Added View.BorderStyle and renamed BorderStyle enum to LineStyle

* Fixed a lot of things and broke everything else

* Fixed things

* Updated DialogTests

* Updates including Rect unit tests

* Fixed Dialog & MessagBox tests

* Fixed AllviewsTester bug

* Fixed AllviewsTester bug

* Removed Border class

* Renamed View privates with _

* Removed comments in MessageBox.cs
This commit is contained in:
Tig
2023-04-10 17:34:52 -06:00
committed by GitHub
parent 98aab602eb
commit a637f8a29c
78 changed files with 5222 additions and 4081 deletions

View File

@@ -22,19 +22,19 @@ namespace Terminal.Gui.ViewsTests {
var fv = new FrameView ();
Assert.Equal (string.Empty, fv.Title);
Assert.Equal (string.Empty, fv.Text);
Assert.NotNull (fv.Border);
Assert.Equal (LineStyle.Single, fv.BorderStyle);
fv = new FrameView ("Test");
Assert.Equal ("Test", fv.Title);
Assert.Equal (string.Empty, fv.Text);
Assert.NotNull (fv.Border);
Assert.Equal (LineStyle.Single, fv.BorderStyle);
fv = new FrameView (new Rect (1, 2, 10, 20), "Test");
Assert.Equal ("Test", fv.Title);
Assert.Equal (string.Empty, fv.Text);
Assert.NotNull (fv.Border);
fv.BeginInit ();
fv.EndInit ();
Assert.Equal (LineStyle.Single, fv.BorderStyle);
Assert.Equal (new Rect (1, 2, 10, 20), fv.Frame);
}
@@ -45,7 +45,6 @@ namespace Terminal.Gui.ViewsTests {
var fv = new FrameView ();
Assert.Equal (string.Empty, fv.Title);
Assert.Equal (string.Empty, fv.Text);
Assert.NotNull (fv.Border);
Application.Top.Add (fv);
Application.Begin (Application.Top);
Assert.Equal (new Rect (0, 0, 0, 0), fv.Frame);