Explorar o código

Use Size not PixelSize in ImageTests.

`Image` now bases the size of a bitmap on `IImage.Size`.
Steven Kirk %!s(int64=6) %!d(string=hai) anos
pai
achega
11a714dbf7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/Avalonia.Controls.UnitTests/ImageTests.cs

+ 1 - 1
tests/Avalonia.Controls.UnitTests/ImageTests.cs

@@ -169,7 +169,7 @@ namespace Avalonia.Controls.UnitTests
 
         private IBitmap CreateBitmap(int width, int height)
         {
-            return Mock.Of<IBitmap>(x => x.PixelSize == new PixelSize(width, height));
+            return Mock.Of<IBitmap>(x => x.Size == new Size(width, height));
         }
     }
 }