Skip to content

Commit

Permalink
Use Size not PixelSize in ImageTests.
Browse files Browse the repository at this point in the history
`Image` now bases the size of a bitmap on `IImage.Size`.
  • Loading branch information
grokys committed Dec 20, 2019
1 parent 6bd9ca8 commit 11a714d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Avalonia.Controls.UnitTests/ImageTests.cs
Expand Up @@ -169,7 +169,7 @@ public void Arrange_Should_Return_Correct_Size_For_UniformToFill_Stretch()

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

0 comments on commit 11a714d

Please sign in to comment.