58 references to Entries
System.Drawing.Common.Tests (51)
mono\System.Drawing.Imaging\IconCodecTests.cs (8)
52
Assert.Equal(0, bmp.Palette.
Entries
.Length);
60
Assert.Equal(0, image.Palette.
Entries
.Length);
100
Assert.Equal(0, bmp.Palette.
Entries
.Length);
248
Assert.Equal(0, bmp.Palette.
Entries
.Length);
453
Assert.Equal(0, bmp.Palette.
Entries
.Length);
675
Assert.Equal(0, bmp.Palette.
Entries
.Length);
933
Assert.Equal(0, bmp.Palette.
Entries
.Length);
1843
Assert.Equal(0, bmp.Palette.
Entries
.Length);
mono\System.Drawing.Imaging\JpegCodecTests.cs (3)
69
Assert.Equal(256, cp.
Entries
.Length);
75
Color c = cp.
Entries
[i];
195
Assert.Equal(0, bmp.Palette.
Entries
.Length);
mono\System.Drawing.Imaging\PngCodecTests.cs (21)
50
Assert.Equal(2, bmp.Palette.
Entries
.Length);
51
Assert.Equal(-16777216, bmp.Palette.
Entries
[0].ToArgb());
52
Assert.Equal(-1, bmp.Palette.
Entries
[1].ToArgb());
254
Assert.Equal(0, bmp.Palette.
Entries
.Length);
360
Assert.Equal(16, bmp.Palette.
Entries
.Length);
361
Assert.Equal(-12106173, bmp.Palette.
Entries
[0].ToArgb());
362
Assert.Equal(-10979957, bmp.Palette.
Entries
[1].ToArgb());
363
Assert.Equal(-8879241, bmp.Palette.
Entries
[2].ToArgb());
364
Assert.Equal(-10381134, bmp.Palette.
Entries
[3].ToArgb());
365
Assert.Equal(-7441574, bmp.Palette.
Entries
[4].ToArgb());
366
Assert.Equal(-6391673, bmp.Palette.
Entries
[5].ToArgb());
367
Assert.Equal(-5861009, bmp.Palette.
Entries
[6].ToArgb());
368
Assert.Equal(-3824008, bmp.Palette.
Entries
[7].ToArgb());
369
Assert.Equal(-5790569, bmp.Palette.
Entries
[8].ToArgb());
370
Assert.Equal(-6178617, bmp.Palette.
Entries
[9].ToArgb());
371
Assert.Equal(-4668490, bmp.Palette.
Entries
[10].ToArgb());
372
Assert.Equal(-5060143, bmp.Palette.
Entries
[11].ToArgb());
373
Assert.Equal(-3492461, bmp.Palette.
Entries
[12].ToArgb());
374
Assert.Equal(-2967099, bmp.Palette.
Entries
[13].ToArgb());
375
Assert.Equal(-2175574, bmp.Palette.
Entries
[14].ToArgb());
376
Assert.Equal(-1314578, bmp.Palette.
Entries
[15].ToArgb());
mono\System.Drawing\BitmapTests.cs (15)
827
Assert.Equal(2, pal.
Entries
.Length);
828
for (int i = 0; i < pal.
Entries
.Length; i++)
830
Assert.Equal(s_palette1[i], pal.
Entries
[i].ToArgb());
861
Assert.Equal(16, pal.
Entries
.Length);
862
for (int i = 0; i < pal.
Entries
.Length; i++)
864
Assert.Equal(s_palette16[i], pal.
Entries
[i].ToArgb());
1135
Assert.Equal(256, pal.
Entries
.Length);
1136
for (int i = 0; i < pal.
Entries
.Length; i++)
1138
Assert.Equal(s_palette256[i], pal.
Entries
[i].ToArgb());
1185
Assert.Equal(0, b.Palette.
Entries
.Length);
1272
Assert.Equal(0, bitmap.Palette.
Entries
.Length);
1283
Assert.Equal(0, image.Palette.
Entries
.Length);
1298
Assert.Equal(0, bitmap.Palette.
Entries
.Length);
1310
Assert.Equal(0, image.Palette.
Entries
.Length);
1319
Assert.Equal(0, image2.Palette.
Entries
.Length);
System\Drawing\BitmapTests.cs (2)
706
Assert.Empty(result.Palette.
Entries
);
1440
Assert.Equal(expectedEntries, bitmap.Palette.
Entries
.Select(c => c.ToArgb()));
System\Drawing\IconTests.cs (2)
526
Assert.Empty(bitmap.Palette.
Entries
);
564
Assert.Empty(bitmap.Palette.
Entries
);
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlPaintTests.cs (7)
42
Assert.Empty(result.Palette.
Entries
);
67
Assert.Empty(result.Palette.
Entries
);
113
Assert.Empty(result.Palette.
Entries
);
145
Assert.Empty(result.Palette.
Entries
);
178
Assert.Empty(result.Palette.
Entries
);
221
Assert.Equal(new Color[] { Color.FromArgb(255, 0, 0, 0), Color.FromArgb(255, 255, 255, 255) }, result.Palette.
Entries
);
246
Assert.Equal(new Color[] { Color.FromArgb(255, 0, 0, 0), Color.FromArgb(255, 255, 255, 255) }, result.Palette.
Entries
);