From 3bb54a84aeabc9d2da0b9b39f4e12c19ef9d1cf9 Mon Sep 17 00:00:00 2001 From: JimBobSquarePants Date: Mon, 14 Aug 2017 12:06:40 +1000 Subject: [PATCH] Update rotate test to use new API --- tests/ImageSharp.Tests/Image/ImageRotationTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } } }