/// <param name="testOutputDetails">Details to be concatenated to the test output file, describing the parameters of the test.</param>
/// <param name="extension">The extension</param>
/// /// <param name="grayscale">A boolean indicating whether we should save a smaller in size.</param>
publicstaticImage<TPixel>DebugSave<TPixel>(
thisImage<TPixel>image,
ITestImageProviderprovider,
objectsettings=null,
objecttestOutputDetails=null,
stringextension="png",
boolgrayscale=false)
whereTPixel:struct,IPixel<TPixel>
@ -36,37 +37,59 @@ namespace ImageSharp.Tests
{
returnimage;
}
// We are running locally then we want to save it out
provider.Utility.SaveTestOutputFile(
image,
extension,
testOutputDetails:settings,
testOutputDetails:testOutputDetails,
grayscale:grayscale);
returnimage;
}
/// <summary>
/// Compares the image against the expected Reference output, throws an exception if the images are not similar enough.
/// The output file should be named identically to the output produced by <see cref="DebugSave{TPixel}(Image{TPixel}, ITestImageProvider, object, string, bool)"/>.