Added unit tests for CropWebProcessor and ImageCropperTemplateCoreExtensions.

This commit is contained in:
Andy Butland
2021-08-11 17:18:23 +02:00
parent c5361ec54e
commit 902984f977
4 changed files with 275 additions and 3 deletions

View File

@@ -70,12 +70,12 @@ namespace Umbraco.Cms.Infrastructure.Media
AddQueryString("quality", options.Quality.Value);
}
if (!string.IsNullOrWhiteSpace(options.FurtherOptions))
if (string.IsNullOrWhiteSpace(options.FurtherOptions) == false)
{
AppendQueryString(options.FurtherOptions.TrimStart('?', '&'));
}
if (!string.IsNullOrWhiteSpace(options.CacheBusterValue))
if (string.IsNullOrWhiteSpace(options.CacheBusterValue) == false)
{
AddQueryString("rnd", options.CacheBusterValue);
}