Skip to content

Commit c074de3

Browse files
committed
assertions for SolidFillBlendedShapesTests
1 parent 6383bc1 commit c074de3

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

tests/ImageSharp.Tests/Drawing/SolidFillBlendedShapesTests.cs

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
// Copyright (c) Six Labors and contributors.
22
// Licensed under the Apache License, Version 2.0.
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using SixLabors.ImageSharp.PixelFormats;
7+
using SixLabors.ImageSharp.Processing;
8+
using SixLabors.ImageSharp.Processing.Drawing;
9+
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;
10+
using SixLabors.Primitives;
11+
using Xunit;
312

413
// ReSharper disable InconsistentNaming
514
namespace SixLabors.ImageSharp.Tests.Drawing
615
{
7-
using System;
8-
using System.Collections.Generic;
9-
using System.Linq;
10-
11-
using SixLabors.ImageSharp.PixelFormats;
12-
using SixLabors.ImageSharp.Processing;
13-
using SixLabors.ImageSharp.Processing.Drawing;
14-
using SixLabors.Primitives;
15-
16-
using Xunit;
17-
1816
[GroupOutput("Drawing")]
1917
public class SolidFillBlendedShapesTests
2018
{
@@ -144,6 +142,13 @@ private static void VerifyImage<TPixel>(TestImageProvider<TPixel> provider, Pixe
144142
new { mode },
145143
appendPixelTypeToFileName: false,
146144
appendSourceFileOrDescription: false);
145+
146+
var comparer = ImageComparer.TolerantPercentage(0.01f, 3);
147+
img.CompareFirstFrameToReferenceOutput(comparer,
148+
provider,
149+
new { mode },
150+
appendPixelTypeToFileName: false,
151+
appendSourceFileOrDescription: false);
147152
}
148153
}
149154
}

0 commit comments

Comments
 (0)