From 1746abc9abd50fc732079eb22ff25db553e5eb6a Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Sun, 16 Feb 2020 15:15:25 +0100 Subject: [PATCH] Fix localization issue with DitheringScale --- .../Processing/Processors/Quantization/QuantizerTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Processing/Processors/Quantization/QuantizerTests.cs b/tests/ImageSharp.Tests/Processing/Processors/Quantization/QuantizerTests.cs index 339dda3b9..0d50ddf2f 100644 --- a/tests/ImageSharp.Tests/Processing/Processors/Quantization/QuantizerTests.cs +++ b/tests/ImageSharp.Tests/Processing/Processors/Quantization/QuantizerTests.cs @@ -1,6 +1,8 @@ // Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. +using System; + using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; using SixLabors.ImageSharp.Processing.Processors.Quantization; @@ -209,7 +211,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Quantization string ditherName = quantizer.Options.Dither.GetType().Name; string ditherType = quantizer.Options.Dither.DitherType.ToString(); float ditherScale = quantizer.Options.DitherScale; - string testOutputDetails = $"{quantizerName}_{ditherName}_{ditherType}_{ditherScale}"; + string testOutputDetails = FormattableString.Invariant($"{quantizerName}_{ditherName}_{ditherType}_{ditherScale}"); provider.RunValidatingProcessorTest( x => x.Quantize(quantizer),