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