Browse Source

BulkPixelOperationsTests.GetGlobalInstance() to make CodeCov happy

af/merge-core
Anton Firszov 9 years ago
parent
commit
ddc6bf5b18
  1. 10
      tests/ImageSharp.Tests/Colors/BulkPixelOperationsTests.cs

10
tests/ImageSharp.Tests/Colors/BulkPixelOperationsTests.cs

@ -5,7 +5,7 @@
using Xunit;
public abstract class BulkPixelOperationsTests
public class BulkPixelOperationsTests
{
public class Color : BulkPixelOperationsTests<ImageSharp.Color>
{
@ -18,6 +18,14 @@
// For 4.6 test runner MemberData does not work without redeclaring the public field in the derived test class:
public static new TheoryData<int> ArraySizesData => new TheoryData<int> { 7, 16, 1111 };
}
[Theory]
[WithBlankImages(1, 1, PixelTypes.All)]
public void GetGlobalInstance<TColor>(TestImageProvider<TColor> dummy)
where TColor:struct, IPixel<TColor>
{
Assert.NotNull(BulkPixelOperations<TColor>.Instance);
}
}
public abstract class BulkPixelOperationsTests<TColor>

Loading…
Cancel
Save