فهرست منبع

Use Size not PixelSize in ImageTests.

`Image` now bases the size of a bitmap on `IImage.Size`.
Steven Kirk 6 سال پیش
والد
کامیت
11a714dbf7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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));
         }
     }
 }