Browse Source

A couple more Rectangles simplified

Brandon Thetford 1 year ago
parent
commit
13b6d754ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UnitTests/Views/WindowTests.cs

+ 2 - 2
UnitTests/Views/WindowTests.cs

@@ -167,8 +167,8 @@ public class WindowTests
     #endif
         Assert.True (windowWithFrameRectEmpty.CanFocus);
         Assert.False (windowWithFrameRectEmpty.HasFocus);
-        Assert.Equal (new Rectangle (0, 0, 0, 0), windowWithFrameRectEmpty.Bounds);
-        Assert.Equal (new Rectangle (0, 0, 0, 0), windowWithFrameRectEmpty.Frame);
+        Assert.Equal (Rectangle.Empty, windowWithFrameRectEmpty.Bounds);
+        Assert.Equal (Rectangle.Empty, windowWithFrameRectEmpty.Frame);
         Assert.Null (windowWithFrameRectEmpty.Focused);
         Assert.NotNull (windowWithFrameRectEmpty.ColorScheme);
         Assert.Equal (0, windowWithFrameRectEmpty.X);