Browse Source

Update rotate test to use new API

af/merge-core
JimBobSquarePants 9 years ago
parent
commit
3bb54a84ae
  1. 10
      tests/ImageSharp.Tests/Image/ImageRotationTests.cs

10
tests/ImageSharp.Tests/Image/ImageRotationTests.cs

@ -42,12 +42,12 @@ namespace ImageSharp.Tests
private static (Size original, Size rotated) Rotate(int angle) private static (Size original, Size rotated) Rotate(int angle)
{ {
TestFile file = TestFile.Create(TestImages.Bmp.Car); var file = TestFile.Create(TestImages.Bmp.Car);
using (Image<Rgba32> image = Image.Load<Rgba32>(file.FilePath)) using (var image = Image.Load<Rgba32>(file.FilePath))
{ {
Size original = image.Bounds.Size; Size original = image.Bounds().Size;
image.Rotate(angle); image.Mutate(x => x.Rotate(angle));
return (original, image.Bounds.Size); return (original, image.Bounds().Size);
} }
} }
} }

Loading…
Cancel
Save