|
|
|
@ -95,8 +95,6 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
return $"{this.GetTestOutputDir()}/{this.TestName}{pixName}{fn}{details}{extension}"; |
|
|
|
} |
|
|
|
|
|
|
|
private static string Inv(FormattableString formattable) => System.FormattableString.Invariant(formattable); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the recommended file name for the output of the test
|
|
|
|
/// </summary>
|
|
|
|
@ -123,7 +121,7 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
TypeInfo info = type.GetTypeInfo(); |
|
|
|
if (info.IsPrimitive || info.IsEnum || type == typeof(decimal)) |
|
|
|
{ |
|
|
|
detailsString = Inv($"{testOutputDetails}"); |
|
|
|
detailsString = TestUtils.AsInvariantString($"{testOutputDetails}"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
@ -132,7 +130,7 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
detailsString = string.Join( |
|
|
|
"_", |
|
|
|
properties.ToDictionary(x => x.Name, x => x.GetValue(testOutputDetails)) |
|
|
|
.Select(x => Inv($"{x.Key}-{x.Value}")) |
|
|
|
.Select(x => TestUtils.AsInvariantString($"{x.Key}-{x.Value}")) |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|