18 references to _yellowToRedColorMap
System.Drawing.Common.Tests (18)
System\Drawing\Imaging\ImageAttributesTests.cs (18)
1175imageAttr.SetRemapTable(_yellowToRedColorMap);
1176bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor);
1178Assert.Equal(_yellowToRedColorMap[0].NewColor, bitmap.GetPixel(0, 0));
1188imageAttr.SetRemapTable(_yellowToRedColorMap, type);
1189bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor);
1191Assert.Equal(_yellowToRedColorMap[0].NewColor, bitmap.GetPixel(0, 0));
1201imageAttr.SetRemapTable(_yellowToRedColorMap, type);
1202bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor);
1204Assert.Equal(_yellowToRedColorMap[0].OldColor, bitmap.GetPixel(0, 0));
1213AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetRemapTable(_yellowToRedColorMap));
1214AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetRemapTable(_yellowToRedColorMap, ColorAdjustType.Default));
1222AssertExtensions.ThrowsAny<ArgumentNullException, ArgumentException>(() => imageAttr.SetRemapTable(_yellowToRedColorMap, type));
1252imageAttr.SetRemapTable(_yellowToRedColorMap);
1254bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor);
1256Assert.Equal(_yellowToRedColorMap[0].OldColor, bitmap.GetPixel(0, 0));
1266imageAttr.SetRemapTable(_yellowToRedColorMap, type);
1268bitmap.SetPixel(0, 0, _yellowToRedColorMap[0].OldColor);
1270Assert.Equal(_yellowToRedColorMap[0].OldColor, bitmap.GetPixel(0, 0));