diff --git a/tests/ImageSharp.Tests/Image/ImageRotationTests.cs b/tests/ImageSharp.Tests/Image/ImageRotationTests.cs index 56cec4219..d9106399e 100644 --- a/tests/ImageSharp.Tests/Image/ImageRotationTests.cs +++ b/tests/ImageSharp.Tests/Image/ImageRotationTests.cs @@ -42,12 +42,12 @@ namespace ImageSharp.Tests private static (Size original, Size rotated) Rotate(int angle) { - TestFile file = TestFile.Create(TestImages.Bmp.Car); - using (Image image = Image.Load(file.FilePath)) + var file = TestFile.Create(TestImages.Bmp.Car); + using (var image = Image.Load(file.FilePath)) { - Size original = image.Bounds.Size; - image.Rotate(angle); - return (original, image.Bounds.Size); + Size original = image.Bounds().Size; + image.Mutate(x => x.Rotate(angle)); + return (original, image.Bounds().Size); } } }