diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensionsTests.cs index 2d16805a89..b3b1e64f94 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensionsTests.cs @@ -101,44 +101,6 @@ namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Extensions y.Height == 50))); } - [Test] - public void GetCropUrl_WithCropSpecifiedAndWidthRatioModeProvidedWithWidthAndHeight_CallsImageGeneratorWithCorrectParameters() - { - var imageUrl = "/test.jpg"; - Mock imageUrlGenerator = CreateMockImageUrlGenerator(); - var result = imageUrl.GetCropUrl( - imageUrlGenerator.Object, - CreateImageCropperValueWithCrops(), - imageCropMode: ImageCropMode.Crop, - cropAlias: "TestCrop", - width: 35, - height: 50); - - imageUrlGenerator - .Verify(x => x.GetImageUrl( - It.Is(y => y.Width == 35 && - y.Height == 50))); - } - - [Test] - public void GetCropUrl_WithCropSpecifiedAndHeightRatioModeProvidedWithWidthAndHeight_CallsImageGeneratorWithCorrectParameters() - { - var imageUrl = "/test.jpg"; - Mock imageUrlGenerator = CreateMockImageUrlGenerator(); - var result = imageUrl.GetCropUrl( - imageUrlGenerator.Object, - CreateImageCropperValueWithCrops(), - imageCropMode: ImageCropMode.Crop, - cropAlias: "TestCrop", - width: 60, - height: 40); - - imageUrlGenerator - .Verify(x => x.GetImageUrl( - It.Is(y => y.Width == 60 && - y.Height == 40))); - } - private static Mock CreateMockImageUrlGenerator() => new Mock(); private static ImageCropperValue CreateImageCropperValueWithCrops() => new ImageCropperValue