Browse Source

tests are passing

pull/910/head
Anton Firszov 7 years ago
parent
commit
f0b70b63ef
  1. 2
      src/ImageSharp.Drawing/Processing/Processors/Text/DrawTextProcessor.cs
  2. 3
      tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs

2
src/ImageSharp.Drawing/Processing/Processors/Text/DrawTextProcessor.cs

@ -78,7 +78,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Text
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>()
where TPixel : struct, IPixel<TPixel>
{
throw new NotImplementedException();
return new DrawTextProcessor<TPixel>(this);
}
}

3
tests/ImageSharp.Tests/Drawing/FillLinearGradientBrushTests.cs

@ -176,7 +176,8 @@ namespace SixLabors.ImageSharp.Tests.Drawing
// the result must be a black and white pattern, no other color should occur:
Assert.All(
Enumerable.Range(0, image.Width).Select(i => image[i, 0]),
color => Assert.True(color.Equals(black) || color.Equals(white)));
color => Assert.True(
color.Equals(black.ToPixel<TPixel>()) || color.Equals(white.ToPixel<TPixel>())));
image.CompareToReferenceOutput(
TolerantComparer,

Loading…
Cancel
Save