|
|
@ -12,7 +12,7 @@ namespace ImageSharp.Tests.Colors |
|
|
|
|
|
|
|
|
public class PixelOperationsTests |
|
|
public class PixelOperationsTests |
|
|
{ |
|
|
{ |
|
|
public class Color32 : BulkPixelOperationsTests<Rgba32> |
|
|
public class Color32 : PixelOperationsTests<Rgba32> |
|
|
{ |
|
|
{ |
|
|
public Color32(ITestOutputHelper output) |
|
|
public Color32(ITestOutputHelper output) |
|
|
: base(output) |
|
|
: base(output) |
|
|
@ -20,7 +20,7 @@ namespace ImageSharp.Tests.Colors |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// For 4.6 test runner MemberData does not work without redeclaring the public field in the derived test class:
|
|
|
// 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 };
|
|
|
public static new TheoryData<int> ArraySizesData => new TheoryData<int> { 7, 16, 1111 }; |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void IsSpecialImplementation() |
|
|
public void IsSpecialImplementation() |
|
|
@ -60,7 +60,7 @@ namespace ImageSharp.Tests.Colors |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public class Argb : BulkPixelOperationsTests<Argb32> |
|
|
public class Argb : PixelOperationsTests<Argb32> |
|
|
{ |
|
|
{ |
|
|
// For 4.6 test runner MemberData does not work without redeclaring the public field in the derived test class:
|
|
|
// For 4.6 test runner MemberData does not work without redeclaring the public field in the derived test class:
|
|
|
public Argb(ITestOutputHelper output) |
|
|
public Argb(ITestOutputHelper output) |
|
|
@ -68,7 +68,7 @@ namespace ImageSharp.Tests.Colors |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//public static new TheoryData<int> ArraySizesData => new TheoryData<int> { 7, 16, 1111 };
|
|
|
public static new TheoryData<int> ArraySizesData => new TheoryData<int> { 7, 16, 1111 }; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Theory] |
|
|
[Theory] |
|
|
@ -80,10 +80,10 @@ namespace ImageSharp.Tests.Colors |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public abstract class BulkPixelOperationsTests<TPixel> : MeasureFixture |
|
|
public abstract class PixelOperationsTests<TPixel> : MeasureFixture |
|
|
where TPixel : struct, IPixel<TPixel> |
|
|
where TPixel : struct, IPixel<TPixel> |
|
|
{ |
|
|
{ |
|
|
protected BulkPixelOperationsTests(ITestOutputHelper output) |
|
|
protected PixelOperationsTests(ITestOutputHelper output) |
|
|
: base(output) |
|
|
: base(output) |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|