mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Rename Rect to Rectangle in preparation for removal
This commit is contained in:
@@ -135,8 +135,8 @@ public class WindowTests
|
||||
Assert.Equal ("Window()(0,0,2147483647,2147483647)", defaultWindow.ToString ());
|
||||
Assert.True (defaultWindow.CanFocus);
|
||||
Assert.False (defaultWindow.HasFocus);
|
||||
Assert.Equal (new Rect (0, 0, 2147483645, 2147483645), defaultWindow.Bounds);
|
||||
Assert.Equal (new Rect (0, 0, 2147483647, 2147483647), defaultWindow.Frame);
|
||||
Assert.Equal (new Rectangle (0, 0, 2147483645, 2147483645), defaultWindow.Bounds);
|
||||
Assert.Equal (new Rectangle (0, 0, 2147483647, 2147483647), defaultWindow.Frame);
|
||||
Assert.Null (defaultWindow.Focused);
|
||||
Assert.NotNull (defaultWindow.ColorScheme);
|
||||
Assert.Equal (0, defaultWindow.X);
|
||||
@@ -152,7 +152,7 @@ public class WindowTests
|
||||
Assert.Equal (TextDirection.LeftRight_TopBottom, defaultWindow.TextDirection);
|
||||
|
||||
// Empty Rect
|
||||
using var windowWithFrameRectEmpty = new Window { Frame = Rect.Empty, Title = "title" };
|
||||
using var windowWithFrameRectEmpty = new Window { Frame = Rectangle.Empty, Title = "title" };
|
||||
Assert.NotNull (windowWithFrameRectEmpty);
|
||||
Assert.Equal ("title", windowWithFrameRectEmpty.Title);
|
||||
Assert.Equal (LayoutStyle.Absolute, windowWithFrameRectEmpty.LayoutStyle);
|
||||
@@ -167,8 +167,8 @@ public class WindowTests
|
||||
#endif
|
||||
Assert.True (windowWithFrameRectEmpty.CanFocus);
|
||||
Assert.False (windowWithFrameRectEmpty.HasFocus);
|
||||
Assert.Equal (new Rect (0, 0, 0, 0), windowWithFrameRectEmpty.Bounds);
|
||||
Assert.Equal (new Rect (0, 0, 0, 0), windowWithFrameRectEmpty.Frame);
|
||||
Assert.Equal (new Rectangle (0, 0, 0, 0), windowWithFrameRectEmpty.Bounds);
|
||||
Assert.Equal (new Rectangle (0, 0, 0, 0), windowWithFrameRectEmpty.Frame);
|
||||
Assert.Null (windowWithFrameRectEmpty.Focused);
|
||||
Assert.NotNull (windowWithFrameRectEmpty.ColorScheme);
|
||||
Assert.Equal (0, windowWithFrameRectEmpty.X);
|
||||
@@ -200,8 +200,8 @@ public class WindowTests
|
||||
#endif
|
||||
Assert.True (windowWithFrame1234.CanFocus);
|
||||
Assert.False (windowWithFrame1234.HasFocus);
|
||||
Assert.Equal (new Rect (0, 0, 1, 2), windowWithFrame1234.Bounds);
|
||||
Assert.Equal (new Rect (1, 2, 3, 4), windowWithFrame1234.Frame);
|
||||
Assert.Equal (new Rectangle (0, 0, 1, 2), windowWithFrame1234.Bounds);
|
||||
Assert.Equal (new Rectangle (1, 2, 3, 4), windowWithFrame1234.Frame);
|
||||
Assert.Null (windowWithFrame1234.Focused);
|
||||
Assert.NotNull (windowWithFrame1234.ColorScheme);
|
||||
Assert.Equal (1, windowWithFrame1234.X);
|
||||
|
||||
Reference in New Issue
Block a user