Procházet zdrojové kódy

A couple more Rectangles simplified

Brandon Thetford před 1 rokem
rodič
revize
13b6d754ff
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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);