mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user