Skip to content

Commit 458aa53

Browse files
committed
SixLabors#542: shorten test names, improve test image filenames
1 parent 43db61a commit 458aa53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/ImageSharp.Tests/Drawing/FillEllipticGradientBrushTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class FillEllipticGradientBrushTests : FileTestBase
1717
{
1818
[Theory]
1919
[WithBlankImages(10, 10, PixelTypes.Rgba32)]
20-
public void EllipticGradientBrushWithEqualColorsAndReturnsUnicolorImage<TPixel>(
20+
public void WithEqualColorsReturnsUnicolorImage<TPixel>(
2121
TestImageProvider<TPixel> provider)
2222
where TPixel : struct, IPixel<TPixel>
2323
{
@@ -57,7 +57,7 @@ public void EllipticGradientBrushWithEqualColorsAndReturnsUnicolorImage<TPixel>(
5757
[WithBlankImages(200, 200, PixelTypes.Rgba32, 1.2)]
5858
[WithBlankImages(200, 200, PixelTypes.Rgba32, 1.6)]
5959
[WithBlankImages(200, 200, PixelTypes.Rgba32, 2.0)]
60-
public void EllipticGradientBrushProducesAxisParallelEllipsesWithDifferentRatio<TPixel>(
60+
public void AxisParallelEllipsesWithDifferentRatio<TPixel>(
6161
TestImageProvider<TPixel> provider,
6262
float ratio)
6363
where TPixel : struct, IPixel<TPixel>
@@ -79,7 +79,7 @@ public void EllipticGradientBrushProducesAxisParallelEllipsesWithDifferentRatio<
7979
new ColorStop<TPixel>(1, black));
8080

8181
image.Mutate(x => x.Fill(unicolorLinearGradientBrush));
82-
image.DebugSave(provider, ratio);
82+
image.DebugSave(provider, ratio.ToString("F1"));
8383
image.CompareToReferenceOutput(provider, ratio);
8484
}
8585
}
@@ -104,13 +104,13 @@ public void EllipticGradientBrushProducesAxisParallelEllipsesWithDifferentRatio<
104104
[WithBlankImages(200, 200, PixelTypes.Rgba32, 0.4, 30)]
105105
[WithBlankImages(200, 200, PixelTypes.Rgba32, 0.8, 30)]
106106
[WithBlankImages(200, 200, PixelTypes.Rgba32, 1.0, 30)]
107-
public void EllipticGradientBrushProducesRotatedEllipsesWithDifferentRatio<TPixel>(
107+
public void RotatedEllipsesWithDifferentRatio<TPixel>(
108108
TestImageProvider<TPixel> provider,
109109
float ratio,
110110
float rotationInDegree)
111111
where TPixel: struct, IPixel<TPixel>
112112
{
113-
string variant = $"{ratio}at{rotationInDegree}°";
113+
string variant = $"{ratio:F2}at{rotationInDegree:00}°";
114114

115115
using (var image = provider.GetImage())
116116
{

0 commit comments

Comments
 (0)