1
1
// Copyright (c) Six Labors.
2
2
// Licensed under the Six Labors Split License.
3
3
4
+ using System . Diagnostics ;
4
5
using SixLabors . ImageSharp . Formats . Ico ;
5
6
using SixLabors . ImageSharp . PixelFormats ;
6
7
using static SixLabors . ImageSharp . Tests . TestImages . Ico ;
@@ -21,4 +22,122 @@ public void IcoDecoder_Decode(TestImageProvider<Rgba32> provider)
21
22
22
23
// TODO: Assert metadata, frame count, etc
23
24
}
25
+
26
+ [ Theory ]
27
+ [ WithFile ( Bpp1_size_15x15 , PixelTypes . Rgba32 ) ]
28
+ [ WithFile ( Bpp1_size_16x16 , PixelTypes . Rgba32 ) ]
29
+ [ WithFile ( Bpp1_size_17x17 , PixelTypes . Rgba32 ) ]
30
+ [ WithFile ( Bpp1_size_1x1 , PixelTypes . Rgba32 ) ]
31
+ [ WithFile ( Bpp1_size_256x256 , PixelTypes . Rgba32 ) ]
32
+ [ WithFile ( Bpp1_size_2x2 , PixelTypes . Rgba32 ) ]
33
+ [ WithFile ( Bpp1_size_31x31 , PixelTypes . Rgba32 ) ]
34
+ [ WithFile ( Bpp1_size_32x32 , PixelTypes . Rgba32 ) ]
35
+ [ WithFile ( Bpp1_size_33x33 , PixelTypes . Rgba32 ) ]
36
+ [ WithFile ( Bpp1_size_3x3 , PixelTypes . Rgba32 ) ]
37
+ [ WithFile ( Bpp1_size_4x4 , PixelTypes . Rgba32 ) ]
38
+ [ WithFile ( Bpp1_size_5x5 , PixelTypes . Rgba32 ) ]
39
+ [ WithFile ( Bpp1_size_6x6 , PixelTypes . Rgba32 ) ]
40
+ [ WithFile ( Bpp1_size_7x7 , PixelTypes . Rgba32 ) ]
41
+ [ WithFile ( Bpp1_size_8x8 , PixelTypes . Rgba32 ) ]
42
+ [ WithFile ( Bpp1_size_9x9 , PixelTypes . Rgba32 ) ]
43
+ [ WithFile ( Bpp1_transp_not_square , PixelTypes . Rgba32 ) ]
44
+ [ WithFile ( Bpp1_transp_partial , PixelTypes . Rgba32 ) ]
45
+ [ WithFile ( Bpp24_size_15x15 , PixelTypes . Rgba32 ) ]
46
+ [ WithFile ( Bpp24_size_16x16 , PixelTypes . Rgba32 ) ]
47
+ [ WithFile ( Bpp24_size_17x17 , PixelTypes . Rgba32 ) ]
48
+ [ WithFile ( Bpp24_size_1x1 , PixelTypes . Rgba32 ) ]
49
+ [ WithFile ( Bpp24_size_256x256 , PixelTypes . Rgba32 ) ]
50
+ [ WithFile ( Bpp24_size_2x2 , PixelTypes . Rgba32 ) ]
51
+ [ WithFile ( Bpp24_size_31x31 , PixelTypes . Rgba32 ) ]
52
+ [ WithFile ( Bpp24_size_32x32 , PixelTypes . Rgba32 ) ]
53
+ [ WithFile ( Bpp24_size_33x33 , PixelTypes . Rgba32 ) ]
54
+ [ WithFile ( Bpp24_size_3x3 , PixelTypes . Rgba32 ) ]
55
+ [ WithFile ( Bpp24_size_4x4 , PixelTypes . Rgba32 ) ]
56
+ [ WithFile ( Bpp24_size_5x5 , PixelTypes . Rgba32 ) ]
57
+ [ WithFile ( Bpp24_size_6x6 , PixelTypes . Rgba32 ) ]
58
+ [ WithFile ( Bpp24_size_7x7 , PixelTypes . Rgba32 ) ]
59
+ [ WithFile ( Bpp24_size_8x8 , PixelTypes . Rgba32 ) ]
60
+ [ WithFile ( Bpp24_size_9x9 , PixelTypes . Rgba32 ) ]
61
+ [ WithFile ( Bpp24_transp_not_square , PixelTypes . Rgba32 ) ]
62
+ [ WithFile ( Bpp24_transp_partial , PixelTypes . Rgba32 ) ]
63
+ [ WithFile ( Bpp24_transp , PixelTypes . Rgba32 ) ]
64
+ [ WithFile ( Bpp32_size_15x15 , PixelTypes . Rgba32 ) ]
65
+ [ WithFile ( Bpp32_size_16x16 , PixelTypes . Rgba32 ) ]
66
+ [ WithFile ( Bpp32_size_17x17 , PixelTypes . Rgba32 ) ]
67
+ [ WithFile ( Bpp32_size_1x1 , PixelTypes . Rgba32 ) ]
68
+ [ WithFile ( Bpp32_size_256x256 , PixelTypes . Rgba32 ) ]
69
+ [ WithFile ( Bpp32_size_2x2 , PixelTypes . Rgba32 ) ]
70
+ [ WithFile ( Bpp32_size_31x31 , PixelTypes . Rgba32 ) ]
71
+ [ WithFile ( Bpp32_size_32x32 , PixelTypes . Rgba32 ) ]
72
+ [ WithFile ( Bpp32_size_33x33 , PixelTypes . Rgba32 ) ]
73
+ [ WithFile ( Bpp32_size_3x3 , PixelTypes . Rgba32 ) ]
74
+ [ WithFile ( Bpp32_size_4x4 , PixelTypes . Rgba32 ) ]
75
+ [ WithFile ( Bpp32_size_5x5 , PixelTypes . Rgba32 ) ]
76
+ [ WithFile ( Bpp32_size_6x6 , PixelTypes . Rgba32 ) ]
77
+ [ WithFile ( Bpp32_size_7x7 , PixelTypes . Rgba32 ) ]
78
+ [ WithFile ( Bpp32_size_8x8 , PixelTypes . Rgba32 ) ]
79
+ [ WithFile ( Bpp32_size_9x9 , PixelTypes . Rgba32 ) ]
80
+ [ WithFile ( Bpp32_transp_not_square , PixelTypes . Rgba32 ) ]
81
+ [ WithFile ( Bpp32_transp_partial , PixelTypes . Rgba32 ) ]
82
+ [ WithFile ( Bpp32_transp , PixelTypes . Rgba32 ) ]
83
+ [ WithFile ( Bpp4_size_15x15 , PixelTypes . Rgba32 ) ]
84
+ [ WithFile ( Bpp4_size_16x16 , PixelTypes . Rgba32 ) ]
85
+ [ WithFile ( Bpp4_size_17x17 , PixelTypes . Rgba32 ) ]
86
+ [ WithFile ( Bpp4_size_1x1 , PixelTypes . Rgba32 ) ]
87
+ [ WithFile ( Bpp4_size_256x256 , PixelTypes . Rgba32 ) ]
88
+ [ WithFile ( Bpp4_size_2x2 , PixelTypes . Rgba32 ) ]
89
+ [ WithFile ( Bpp4_size_31x31 , PixelTypes . Rgba32 ) ]
90
+ [ WithFile ( Bpp4_size_32x32 , PixelTypes . Rgba32 ) ]
91
+ [ WithFile ( Bpp4_size_33x33 , PixelTypes . Rgba32 ) ]
92
+ [ WithFile ( Bpp4_size_3x3 , PixelTypes . Rgba32 ) ]
93
+ [ WithFile ( Bpp4_size_4x4 , PixelTypes . Rgba32 ) ]
94
+ [ WithFile ( Bpp4_size_5x5 , PixelTypes . Rgba32 ) ]
95
+ [ WithFile ( Bpp4_size_6x6 , PixelTypes . Rgba32 ) ]
96
+ [ WithFile ( Bpp4_size_7x7 , PixelTypes . Rgba32 ) ]
97
+ [ WithFile ( Bpp4_size_8x8 , PixelTypes . Rgba32 ) ]
98
+ [ WithFile ( Bpp4_size_9x9 , PixelTypes . Rgba32 ) ]
99
+ [ WithFile ( Bpp4_transp_not_square , PixelTypes . Rgba32 ) ]
100
+ [ WithFile ( Bpp4_transp_partial , PixelTypes . Rgba32 ) ]
101
+ [ WithFile ( Bpp8_size_15x15 , PixelTypes . Rgba32 ) ]
102
+ [ WithFile ( Bpp8_size_16x16 , PixelTypes . Rgba32 ) ]
103
+ [ WithFile ( Bpp8_size_17x17 , PixelTypes . Rgba32 ) ]
104
+ [ WithFile ( Bpp8_size_1x1 , PixelTypes . Rgba32 ) ]
105
+ [ WithFile ( Bpp8_size_256x256 , PixelTypes . Rgba32 ) ]
106
+ [ WithFile ( Bpp8_size_2x2 , PixelTypes . Rgba32 ) ]
107
+ [ WithFile ( Bpp8_size_31x31 , PixelTypes . Rgba32 ) ]
108
+ [ WithFile ( Bpp8_size_32x32 , PixelTypes . Rgba32 ) ]
109
+ [ WithFile ( Bpp8_size_33x33 , PixelTypes . Rgba32 ) ]
110
+ [ WithFile ( Bpp8_size_3x3 , PixelTypes . Rgba32 ) ]
111
+ [ WithFile ( Bpp8_size_4x4 , PixelTypes . Rgba32 ) ]
112
+ [ WithFile ( Bpp8_size_5x5 , PixelTypes . Rgba32 ) ]
113
+ [ WithFile ( Bpp8_size_6x6 , PixelTypes . Rgba32 ) ]
114
+ [ WithFile ( Bpp8_size_7x7 , PixelTypes . Rgba32 ) ]
115
+ [ WithFile ( Bpp8_size_8x8 , PixelTypes . Rgba32 ) ]
116
+ [ WithFile ( Bpp8_size_9x9 , PixelTypes . Rgba32 ) ]
117
+ [ WithFile ( Bpp8_transp_not_square , PixelTypes . Rgba32 ) ]
118
+ [ WithFile ( Bpp8_transp_partial , PixelTypes . Rgba32 ) ]
119
+ [ WithFile ( IcoFake , PixelTypes . Rgba32 ) ]
120
+ [ WithFile ( Invalid_all , PixelTypes . Rgba32 ) ]
121
+ [ WithFile ( Invalid_bpp , PixelTypes . Rgba32 ) ]
122
+ [ WithFile ( Invalid_compression , PixelTypes . Rgba32 ) ]
123
+ [ WithFile ( Invalid_png , PixelTypes . Rgba32 ) ]
124
+ [ WithFile ( Invalid_RLE4 , PixelTypes . Rgba32 ) ]
125
+ [ WithFile ( Invalid_RLE8 , PixelTypes . Rgba32 ) ]
126
+ [ WithFile ( Mixed_bmp_png_a , PixelTypes . Rgba32 ) ]
127
+ [ WithFile ( Mixed_bmp_png_b , PixelTypes . Rgba32 ) ]
128
+ [ WithFile ( Mixed_bmp_png_c , PixelTypes . Rgba32 ) ]
129
+ [ WithFile ( Multi_size_a , PixelTypes . Rgba32 ) ]
130
+ [ WithFile ( Multi_size_b , PixelTypes . Rgba32 ) ]
131
+ [ WithFile ( Multi_size_c , PixelTypes . Rgba32 ) ]
132
+ [ WithFile ( Multi_size_d , PixelTypes . Rgba32 ) ]
133
+ [ WithFile ( Multi_size_e , PixelTypes . Rgba32 ) ]
134
+ [ WithFile ( Multi_size_f , PixelTypes . Rgba32 ) ]
135
+ [ WithFile ( Multi_size_multi_bits_a , PixelTypes . Rgba32 ) ]
136
+ [ WithFile ( Multi_size_multi_bits_b , PixelTypes . Rgba32 ) ]
137
+ [ WithFile ( Multi_size_multi_bits_c , PixelTypes . Rgba32 ) ]
138
+ [ WithFile ( Multi_size_multi_bits_d , PixelTypes . Rgba32 ) ]
139
+ public void IcoDecoder_Decode2 ( TestImageProvider < Rgba32 > provider )
140
+ {
141
+ Debug . Assert ( false ) ;
142
+ }
24
143
}
0 commit comments