ソースを参照

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));
         }
     }
 }