15
15
16
16
namespace SixLabors . ImageSharp . Tests . Formats . Png
17
17
{
18
- [ Collection ( "RunSerial" ) ]
19
18
[ Trait ( "Format" , "Png" ) ]
20
19
public partial class PngEncoderTests
21
20
{
22
- private static PngEncoder PngEncoder => new PngEncoder ( ) ;
21
+ private static PngEncoder PngEncoder => new ( ) ;
23
22
24
23
public static readonly TheoryData < string , PngBitDepth > PngBitDepthFiles =
25
- new TheoryData < string , PngBitDepth >
24
+ new ( )
26
25
{
27
26
{ TestImages . Png . Rgb48Bpp , PngBitDepth . Bit16 } ,
28
27
{ TestImages . Png . Bpp1 , PngBitDepth . Bit1 }
29
28
} ;
30
29
31
30
public static readonly TheoryData < string , PngBitDepth , PngColorType > PngTrnsFiles =
32
- new TheoryData < string , PngBitDepth , PngColorType >
31
+ new ( )
33
32
{
34
33
{ TestImages . Png . Gray1BitTrans , PngBitDepth . Bit1 , PngColorType . Grayscale } ,
35
34
{ TestImages . Png . Gray2BitTrans , PngBitDepth . Bit2 , PngColorType . Grayscale } ,
@@ -43,15 +42,15 @@ public partial class PngEncoderTests
43
42
/// <summary>
44
43
/// All types except Palette
45
44
/// </summary>
46
- public static readonly TheoryData < PngColorType > PngColorTypes = new TheoryData < PngColorType >
45
+ public static readonly TheoryData < PngColorType > PngColorTypes = new ( )
47
46
{
48
47
PngColorType . RgbWithAlpha ,
49
48
PngColorType . Rgb ,
50
49
PngColorType . Grayscale ,
51
50
PngColorType . GrayscaleWithAlpha ,
52
51
} ;
53
52
54
- public static readonly TheoryData < PngFilterMethod > PngFilterMethods = new TheoryData < PngFilterMethod >
53
+ public static readonly TheoryData < PngFilterMethod > PngFilterMethods = new ( )
55
54
{
56
55
PngFilterMethod . None ,
57
56
PngFilterMethod . Sub ,
@@ -65,7 +64,7 @@ public partial class PngEncoderTests
65
64
/// All types except Palette
66
65
/// </summary>
67
66
public static readonly TheoryData < PngCompressionLevel > CompressionLevels
68
- = new TheoryData < PngCompressionLevel >
67
+ = new ( )
69
68
{
70
69
PngCompressionLevel . Level0 ,
71
70
PngCompressionLevel . Level1 ,
@@ -79,12 +78,12 @@ public static readonly TheoryData<PngCompressionLevel> CompressionLevels
79
78
PngCompressionLevel . Level9 ,
80
79
} ;
81
80
82
- public static readonly TheoryData < int > PaletteSizes = new TheoryData < int >
81
+ public static readonly TheoryData < int > PaletteSizes = new ( )
83
82
{
84
83
30 , 55 , 100 , 201 , 255
85
84
} ;
86
85
87
- public static readonly TheoryData < int > PaletteLargeOnly = new TheoryData < int >
86
+ public static readonly TheoryData < int > PaletteLargeOnly = new ( )
88
87
{
89
88
80 , 100 , 120 , 230
90
89
} ;
@@ -96,7 +95,7 @@ public static readonly TheoryData<PngCompressionLevel> CompressionLevels
96
95
} ;
97
96
98
97
public static readonly TheoryData < string , int , int , PixelResolutionUnit > RatioFiles =
99
- new TheoryData < string , int , int , PixelResolutionUnit >
98
+ new ( )
100
99
{
101
100
{ TestImages . Png . Splash , 11810 , 11810 , PixelResolutionUnit . PixelsPerMeter } ,
102
101
{ TestImages . Png . Ratio1x4 , 1 , 4 , PixelResolutionUnit . AspectRatio } ,
0 commit comments