1566 references to Red
Accessibility_Core_App (4)
ContainerControls2.Designer.cs (4)
96this.splitContainer1.Panel2.BackColor = System.Drawing.Color.Red; 137this.tableLayoutPanel1.BackColor = System.Drawing.Color.Red; 341this.splitContainer2.Panel2.BackColor = System.Drawing.Color.Red; 381this.tabPage8.BackColor = System.Drawing.Color.Red;
DesignSurface (2)
MainForm.cs (1)
324splitContainer.BackColor = Color.Red;
MainForm.MyScrollableControl.cs (1)
20BackColor = Color.Red;
System.Drawing.Common.Tests (340)
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
186using (Pen p = new(Color.Red, 2))
mono\System.Drawing.Imaging\IconCodecTests.cs (1)
1870using (Pen p = new(Color.Red, 2))
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
351using (Pen p = new(Color.Red, 2))
mono\System.Drawing\BitmapTests.cs (4)
674Color red = Color.FromArgb(Color.Red.A, Color.Red.R, Color.Red.G, Color.Red.B);
mono\System.Drawing\GraphicsTests.cs (11)
834using Pen pen = new(Color.Red); 849using Pen pen = new(Color.Red); 871using SolidBrush brush = new(Color.Red); 886using SolidBrush brush = new(Color.Red); 1198Assert.Equal(Color.Red.ToArgb(), bitmap.GetPixel(5, 5).ToArgb()); 1199Assert.Equal(Color.Red.ToArgb(), bitmap.GetPixel(14, 5).ToArgb()); 1200Assert.Equal(Color.Red.ToArgb(), bitmap.GetPixel(5, 14).ToArgb()); 1201Assert.Equal(Color.Red.ToArgb(), bitmap.GetPixel(14, 14).ToArgb()); 1213g.Clear(Color.Red); 1377g.Clear(Color.Red); 1523g.Clear(Color.Red);
System\Drawing\BitmapTests.cs (12)
799bitmap.SetPixel(x, y, Color.Red); 835bitmap.SetPixel(x, y, Color.Red); 869bitmap.MakeTransparent(Color.Red); 886AssertExtensions.Throws<ArgumentException>(null, () => bitmap.MakeTransparent(Color.Red)); 897bitmap.MakeTransparent(Color.Red); 909Assert.Throws<InvalidOperationException>(() => bitmap.MakeTransparent(Color.Red)); 933Assert.Throws<InvalidOperationException>(() => bitmap.SetPixel(0, 0, Color.Red)); 942AssertExtensions.Throws<ArgumentOutOfRangeException>("x", () => bitmap.SetPixel(x, 0, Color.Red)); 951AssertExtensions.Throws<ArgumentOutOfRangeException>("y", () => bitmap.SetPixel(0, y, Color.Red)); 958AssertExtensions.Throws<ArgumentException>(null, () => bitmap.SetPixel(0, 0, Color.Red)); 967AssertExtensions.Throws<ArgumentException>(null, () => bitmap.SetPixel(0, 0, Color.Red)); 1465Color red = Color.FromArgb(Color.Red.ToArgb());
System\Drawing\BrushesTests.cs (3)
123yield return Brush(() => Brushes.Red, Color.Red); 168brush.Color = Color.Red; 169Assert.Equal(Color.Red, brush.Color);
System\Drawing\BufferedGraphicsTests.cs (3)
46using SolidBrush brush = new(Color.Red); 66using SolidBrush brush = new(Color.Red); 91using SolidBrush brush = new(Color.Red);
System\Drawing\ColorTranslatorTests.cs (3)
47yield return new object[] { Color.Red, 255 }; 87yield return new object[] { Color.Red, 255 }; 159yield return new object[] { "255,0,0", Color.Red };
System\Drawing\Drawing2D\GraphicsPathTests.cs (2)
2248using Pen pen = new(Color.Red, 3.0f); 2275using Pen pen = new(Color.Red, 3.0f);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (92)
11yield return new object[] { new Point(1, 0), new Point(0, 0), Color.Empty, Color.Red, new RectangleF(0, -0.5f, 1, 1) }; 12yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Plum, Color.Red, new RectangleF(1, 2, 3, 4) }; 13yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Red, Color.Red, new RectangleF(1, 2, 3, 4) }; 14yield return new object[] { new Point(-1, -2), new Point(4, 6), Color.Red, Color.Plum, new RectangleF(-1, -2, 5, 8) }; 40using LinearGradientBrush brush = new(new PointF(float.NaN, float.NaN), new PointF(float.PositiveInfinity, float.NegativeInfinity), Color.Plum, Color.Red); 75yield return new object[] { new Rectangle(0, 0, 1, 2), Color.Empty, Color.Red, LinearGradientMode.BackwardDiagonal }; 76yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, LinearGradientMode.ForwardDiagonal }; 77yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.Red, Color.Red, LinearGradientMode.Horizontal }; 78yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Plum, LinearGradientMode.Vertical }; 117yield return new object[] { new Rectangle(0, 0, 1, 2), Color.Empty, Color.Red, 90 }; 118yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 180 }; 119yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.Red, Color.Red, 0 }; 120yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.Red, Color.Red, 360 }; 121yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Plum, 90 }; 235using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 249LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 258using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 261Colors = [Color.Red, Color.PeachPuff, Color.PowderBlue], 280using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 299using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 311using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 318using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 325using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 332using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 339using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 346LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 358using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) { GammaCorrection = gammaCorrection }; 365LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 375using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 378Colors = [Color.Red, Color.PeachPuff, Color.PowderBlue], 390using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) 400Colors = [Color.Red, Color.PeachPuff, Color.PowderBlue], 411using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 418using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 427using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 436using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 446using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 459LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 470LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) 474Colors = [Color.Red, Color.PeachPuff, Color.PowderBlue], 491using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) 495Colors = [Color.Red, Color.PeachPuff, Color.PowderBlue], 510using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) 514Colors = [Color.Red, Color.PeachPuff, Color.PowderBlue], 534Color[] colors = [Color.Red, Color.Blue, Color.AntiqueWhite]; 535using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) { LinearColors = colors }; 542using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 551using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 558LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 562AssertExtensions.Throws<ArgumentException>(null, () => brush.LinearColors = [Color.Red, Color.Wheat]); 568LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 578using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) { Transform = transform }; 585using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 592LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 606using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) { WrapMode = wrapMode }; 615using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 622using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 629LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 639using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 649LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 658using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 674using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 695using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 703using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 717using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 726LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 739using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 756using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 769using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 776LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 789using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 806using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 819using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 826LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 840using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 857using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 870using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 877LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 891using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 902using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 914using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 921LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 934using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 0, true); 948using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 0, true); 962using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 974using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 981LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 991LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true);
System\Drawing\Graphics_DrawBezierTests.cs (10)
26using Pen pen = new(Color.Red); 45using Pen pen = new(Color.Red); 75Pen pen = new(Color.Red); 88using Pen pen = new(Color.Red); 106using Pen pen = new(Color.Red); 130Pen pen = new(Color.Red); 142using Pen pen = new(Color.Red); 152using Pen pen = new(Color.Red); 162using Pen pen = new(Color.Red); 179using Pen pen = new(Color.Red);
System\Drawing\Graphics_DrawLineTests.cs (8)
54Pen pen = new(Color.Red); 68using Pen pen = new(Color.Red); 87using Pen pen = new(Color.Red); 111Pen pen = new(Color.Red); 123using Pen pen = new(Color.Red); 135using Pen pen = new(Color.Red); 145using Pen pen = new(Color.Red); 162using Pen pen = new(Color.Red);
System\Drawing\GraphicsTests.Core.cs (8)
85Pen pen = new(Color.Red); 98using Pen pen = new(Color.Red); 115using Pen pen = new(Color.Red); 139SolidBrush brush = new(Color.Red); 152using SolidBrush brush = new(Color.Red); 163using SolidBrush brush = new(Color.Red); 174using SolidBrush brush = new(Color.Red); 191using SolidBrush brush = new(Color.Red);
System\Drawing\GraphicsTests.cs (60)
819Color red = Color.FromArgb(Color.Red.ToArgb()); 858Color red = Color.FromArgb(Color.Red.ToArgb()); 1065Color red = Color.FromArgb(Color.Red.ToArgb()); 1228LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true); 1916yield return new object[] { PixelFormat.Format32bppArgb, Color.Red, Color.FromArgb(Color.Red.ToArgb()) }; 1917yield return new object[] { PixelFormat.Format16bppRgb555, Color.Red, Color.FromArgb(255, 248, 0, 0) }; 1937Assert.Throws<InvalidOperationException>(() => graphics.GetNearestColor(Color.Red)); 1952AssertExtensions.Throws<ArgumentException>(null, () => graphics.GetNearestColor(Color.Red)); 1971Pen pen = new(Color.Red); 1985using Pen pen = new(Color.Red); 1997using Pen pen = new(Color.Red); 2009using Pen pen = new(Color.Red); 2028using Pen pen = new(Color.Red); 2053Pen pen = new(Color.Red); 2066using Pen pen = new(Color.Red); 2084using Pen pen = new(Color.Red); 2107Pen pen = new(Color.Red); 2119using Pen pen = new(Color.Red); 2129using Pen pen = new(Color.Red); 2139using Pen pen = new(Color.Red); 2156using Pen pen = new(Color.Red); 2180Pen pen = new(Color.Red); 2194using Pen pen = new(Color.Red); 2213using Pen pen = new(Color.Red); 2239Pen pen = new(Color.Red); 2253using Pen pen = new(Color.Red); 2265using Pen pen = new(Color.Red); 2277using Pen pen = new(Color.Red); 2296using Pen pen = new(Color.Red); 2320Pen pen = new(Color.Red); 2332using Pen pen = new(Color.Red); 2344using Pen pen = new(Color.Red); 2354using Pen pen = new(Color.Red); 2371using Pen pen = new(Color.Red); 2394Pen pen = new(Color.Red); 2405using Pen pen = new(Color.Red); 2414using Pen pen = new(Color.Red); 2426using Pen pen = new(Color.Red); 2443using Pen pen = new(Color.Red); 2470Pen pen = new(Color.Red); 2487using Pen pen = new(Color.Red); 2504using Pen pen = new(Color.Red); 2524using Pen pen = new(Color.Red); 2535using Pen pen = new(Color.Red); 2557using Pen pen = new(Color.Red); 2586Pen pen = new(Color.Red); 2600using Pen pen = new(Color.Red); 2615using Pen pen = new(Color.Red); 2627using Pen pen = new(Color.Red); 2646using Pen pen = new(Color.Red); 2671SolidBrush brush = new(Color.Red); 2684using SolidBrush brush = new(Color.Red); 2695using SolidBrush brush = new(Color.Red); 2706using SolidBrush brush = new(Color.Red); 2724using SolidBrush brush = new(Color.Red); 2756using Pen pen = new(Color.Red); 2760Assert.Throws<InvalidOperationException>(() => graphics.Clear(Color.Red)); 2772using Pen pen = new(Color.Red); 2776AssertExtensions.Throws<ArgumentException>(null, () => graphics.Clear(Color.Red));
System\Drawing\PensTests.cs (1)
125yield return Pen(() => Pens.Red, Color.Red);
System\Drawing\PenTests.cs (101)
13yield return new object[] { new SolidBrush(Color.Red), PenType.SolidColor }; 14yield return new object[] { new HatchBrush(HatchStyle.BackwardDiagonal, Color.Red), PenType.HatchFill }; 41yield return new object[] { new SolidBrush(Color.Red), 0, PenType.SolidColor }; 48yield return new object[] { new SolidBrush(Color.Red), float.PositiveInfinity, PenType.SolidColor }; 49yield return new object[] { new SolidBrush(Color.Red), float.NaN, PenType.SolidColor }; 50yield return new object[] { new SolidBrush(Color.Red), float.MaxValue, PenType.SolidColor }; 67using SolidBrush brush = new(Color.Red); 70Assert.Equal(Color.FromArgb(Color.Red.ToArgb()), pen.Color); 84SolidBrush brush = new(Color.Red); 94using Pen pen = new(Color.Red); 96Assert.Equal(Color.Red, pen.Color); 109using Pen pen = new(Color.Red, width); 111Assert.Equal(Color.Red, pen.Color); 122using SolidBrush brush = new(Color.Red); 133using SolidBrush brush = new(Color.Red); 141using SolidBrush brush = new(Color.Red); 153using Pen pen = new(Color.Red); 162using Pen pen = new(Color.Red); 174using SolidBrush brush = new(Color.Red); 182using SolidBrush brush = new(Color.Red); 191using SolidBrush brush = new(Color.Red); 201using SolidBrush brush = new(Color.Red); 227using SolidBrush brush = new(Color.Red); 237using SolidBrush brush = new(Color.Red); 239Assert.Equal(Color.FromArgb(Color.Red.ToArgb()), pen.Color); 245using HatchBrush brush = new(HatchStyle.BackwardDiagonal, Color.Red); 253using LinearGradientBrush brush = new(Point.Empty, new Point(1, 2), Color.Blue, Color.Red); 271pen.Color = Color.Red; 272Assert.Equal(Color.Red, pen.Color); 274pen.Color = Color.Red; 275Assert.Equal(Color.Red, pen.Color); 282Pen pen = new(Color.Red); 285Assert.Equal(Color.Red, pen.Color); 287pen.Color = Color.Red; 288Assert.Equal(Color.Red, pen.Color); 296using SolidBrush brush = new(Color.Red); 301AssertExtensions.Throws<ArgumentException>(null, () => pen.Color = Color.Red); 310using SolidBrush brush = new(Color.Red); 323using SolidBrush brush = new(Color.Red); 331using SolidBrush brush = new(Color.Red); 347using SolidBrush brush = new(Color.Red); 355using SolidBrush brush = new(Color.Red); 366using SolidBrush brush = new(Color.Red); 383using SolidBrush brush = new(Color.Red); 391using SolidBrush brush = new(Color.Red); 404using SolidBrush brush = new(Color.Red); 418using SolidBrush brush = new(Color.Red); 435using SolidBrush brush = new(Color.Red); 443using SolidBrush brush = new(Color.Red); 456using SolidBrush brush = new(Color.Red); 473using SolidBrush brush = new(Color.Red); 485using SolidBrush brush = new(Color.Red); 493using SolidBrush brush = new(Color.Red); 510using SolidBrush brush = new(Color.Red); 519using SolidBrush brush = new(Color.Red); 534using SolidBrush brush = new(Color.Red); 548using SolidBrush brush = new(Color.Red); 556using SolidBrush brush = new(Color.Red); 568using SolidBrush brush = new(Color.Red); 576using SolidBrush brush = new(Color.Red); 593using SolidBrush brush = new(Color.Red); 611using SolidBrush brush = new(Color.Red); 625using SolidBrush brush = new(Color.Red); 633using SolidBrush brush = new(Color.Red); 660using SolidBrush brush = new(Color.Red); 679using SolidBrush brush = new(Color.Red); 687using SolidBrush brush = new(Color.Red); 702using SolidBrush brush = new(Color.Red); 713using SolidBrush brush = new(Color.Red); 721using SolidBrush brush = new(Color.Red); 738using SolidBrush brush = new(Color.Red); 747using SolidBrush brush = new(Color.Red); 769using SolidBrush brush = new(Color.Red); 795using SolidBrush brush = new(Color.Red); 804using SolidBrush brush = new(Color.Red); 814using SolidBrush brush = new(Color.Red); 833using SolidBrush brush = new(Color.Red); 846using SolidBrush brush = new(Color.Red); 858using SolidBrush brush = new(Color.Red); 873using SolidBrush brush = new(Color.Red); 898using (SolidBrush brush = new(Color.Red)) 922using SolidBrush brush = new(Color.Red); 930using SolidBrush brush = new(Color.Red); 958using (SolidBrush brush = new(Color.Red)) 982using SolidBrush brush = new(Color.Red); 990using SolidBrush brush = new(Color.Red); 1005using SolidBrush brush = new(Color.Red); 1022using SolidBrush brush = new(Color.Red); 1033using SolidBrush brush = new(Color.Red); 1043using SolidBrush brush = new(Color.Red); 1051using SolidBrush brush = new(Color.Red); 1062using SolidBrush brush = new(Color.Red); 1077using SolidBrush brush = new(Color.Red); 1085using SolidBrush brush = new(Color.Red); 1094using SolidBrush brush = new(Color.Red); 1105using SolidBrush brush = new(Color.Red); 1133using (SolidBrush brush = new(Color.Red)) 1157using SolidBrush brush = new(Color.Red); 1165using SolidBrush brush = new(Color.Red); 1183using SolidBrush brush = new(Color.Red); 1192using SolidBrush brush = new(Color.Red);
System\Drawing\SystemBrushesTests.cs (1)
53AssertExtensions.Throws<ArgumentException>(null, () => brush.Color = Color.Red);
System\Drawing\TextureBrushTests.cs (18)
732[Color.Red, Color.Green, empty, empty], 748[Color.Red, Color.Green, Color.Red, Color.Green], 750[Color.Red, Color.Green, Color.Red, Color.Green], 764[Color.Red, Color.Green, Color.Green, Color.Red], 766[Color.Red, Color.Green, Color.Green, Color.Red], 780[Color.Red, Color.Green, Color.Red, Color.Green], 783[Color.Red, Color.Green, Color.Red, Color.Green] 796[Color.Red, Color.Green, Color.Green, Color.Red], 799[Color.Red, Color.Green, Color.Green, Color.Red] 806brushBitmap.SetPixel(0, 0, Color.Red);
System.Private.Windows.Core.TestUtilities (2)
CommonTestHelper.cs (2)
62Color.Red, 70Color.Red,
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
8121using Pen pen = new(Color.Red, width: 2);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
66return Color.Red; 70return Color.Red;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2280using (Pen pen = new(Color.Red, penThickness))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
81s_selectedColumnsItemBitmap.MakeTransparent(Color.Red);
System.Windows.Forms.Design.Tests (10)
System\Drawing\Design\ColorEditorTests.cs (1)
25yield return new object[] { Color.Red };
System\Drawing\Design\ImageEditorTests.cs (6)
163otherImage.SetPixel(0, 0, Color.Red); 164otherImage.SetPixel(1, 0, Color.Red); 165otherImage.SetPixel(2, 0, Color.Red); 166otherImage.SetPixel(0, 1, Color.Red); 167otherImage.SetPixel(1, 1, Color.Red); 168otherImage.SetPixel(2, 1, Color.Red);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
325bitmap.SetPixel(0, 0, Color.Red);
System\Windows\Forms\Design\DataGridViewCellStyleBuilderTests.cs (2)
21builder.CellStyle = new DataGridViewCellStyle { BackColor = Color.Red }; 25result.BackColor.Should().Be(Color.Red);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
65using CreateBrushScope redBrush = new(Color.Red);
System.Windows.Forms.Tests (1185)
CheckedListBoxTests.cs (4)
405yield return new object[] { null, Rectangle.Empty, 0, DrawItemState.Default, Color.Red, Color.Blue }; 406yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.None, Color.Red, Color.Blue }; 407yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Checked, Color.Red, Color.Blue }; 408yield return new object[] { new Font("Arial", 8.25f), new Rectangle(10, 20, 30, 40), 1, DrawItemState.Default, Color.Red, Color.Blue };
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (1)
74Color.Red
System\Windows\Forms\ButtonBaseTests.cs (8)
694yield return new object[] { Color.Red, Color.Red, 2 }; 741control.BackColor = Color.Red; 742Assert.Equal(Color.Red, control.BackColor); 746control.BackColor = Color.Red; 747Assert.Equal(Color.Red, control.BackColor); 757control.BackColor = Color.Red; 758Assert.Equal(Color.Red, control.BackColor);
System\Windows\Forms\ColorDialogTests.cs (7)
108yield return new object[] { Color.Red, Color.Red }; 150dialog.Color = Color.Red; 151Assert.Equal(Color.Red, dialog.Color); 166dialog.Color = Color.Red; 167Assert.Equal(Color.Red, dialog.Color); 327Color = Color.Red,
System\Windows\Forms\ComboBoxTests.cs (28)
166yield return new object[] { Color.Red, Color.Red }; 189yield return new object[] { Color.Red, Color.Red, 1 }; 255control.BackColor = Color.Red; 256Assert.Equal(Color.Red, control.BackColor); 260control.BackColor = Color.Red; 261Assert.Equal(Color.Red, control.BackColor); 271control.BackColor = Color.Red; 272Assert.Equal(Color.Red, control.BackColor); 283control.BackColor = Color.Red; 284Assert.Equal(Color.Red, control.BackColor); 299control.BackColor = Color.Red; 300Assert.Equal(Color.Red, control.BackColor); 1051yield return new object[] { Color.Red, Color.Red }; 1077yield return new object[] { Color.Red, Color.Red, 1 }; 1123control.ForeColor = Color.Red; 1124Assert.Equal(Color.Red, control.ForeColor); 1128control.ForeColor = Color.Red; 1129Assert.Equal(Color.Red, control.ForeColor); 1139control.ForeColor = Color.Red; 1140Assert.Equal(Color.Red, control.ForeColor); 1151control.ForeColor = Color.Red; 1152Assert.Equal(Color.Red, control.ForeColor); 1167control.ForeColor = Color.Red; 1168Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\ControlPaintTests.cs (136)
16yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Red }; 17yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Red }; 18yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Red }; 22yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), Color.Red }; 23yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), Color.Red }; 24yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), Color.Red }; 25yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), Color.Red }; 26yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), Color.Red }; 27yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), Color.Red }; 59HBITMAP hBitmap = (HBITMAP)ControlPaint.CreateHBitmap16Bit(bitmap, Color.Red); 82Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmap16Bit(null, Color.Red)); 544yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, style }; 552yield return new object[] { new Rectangle(1, 2, 4, 3), Color.Red, style }; 553yield return new object[] { new Rectangle(1, 2, 3, 3), Color.Red, style }; 576ControlPaint.DrawBorder(graphics, new Rectangle(1, 2, 3, 4), Color.Red, style); 579ControlPaint.DrawBorder(graphics, new Rectangle(1, 2, 3, 4), Color.Red, style); 586yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 587yield return new object[] { Rectangle.Empty, Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 588yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 590yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 591yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 592yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 593yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 594yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 595yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 596yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 597yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 599yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 600yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 601yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 602yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 604yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 605yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 607yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 632yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 633yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 634yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 635yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 636yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 637yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 638yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 639yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 641yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 642yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 643yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 644yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 646yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 647yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 649yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 675Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, style)); 683Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Red, 1, style, Color.Red, 1, style, Color.Red, 1, style)); 1187yield return new object[] { Rectangle.Empty, Color.Red, Color.Blue }; 1188yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Red, Color.Blue }; 1189yield return new object[] { new Rectangle(0, 0, 3, 4), Color.Red, Color.Blue }; 1190yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue }; 1195yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Black }; 1196yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.White }; 1197yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Empty }; 1198yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Transparent }; 1199yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Red }; 1200yield return new object[] { new Rectangle(1, 2, 4, 3), Color.Red, Color.Blue }; 1201yield return new object[] { new Rectangle(1, 2, 3, 3), Color.Red, Color.Blue }; 1220Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue)); 1263yield return new object[] { Rectangle.Empty, new Size(1, 1), Color.Red }; 1264yield return new object[] { new Rectangle(1, 2, -3, -4), new Size(1, 1), Color.Red }; 1265yield return new object[] { new Rectangle(0, 0, 3, 4), new Size(1, 1), Color.Red }; 1266yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Red }; 1271yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(10, 20), Color.Red }; 1272yield return new object[] { new Rectangle(1, 2, 4, 3), new Size(10, 20), Color.Red }; 1273yield return new object[] { new Rectangle(1, 2, 3, 3), new Size(10, 20), Color.Red }; 1291Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrid(null, new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Red)); 1303Assert.Throws<ArgumentOutOfRangeException>("pixelsBetweenDots", () => ControlPaint.DrawGrid(graphics, new Rectangle(0, 0, width, height), new Size(width, height), Color.Red)); 1308yield return new object[] { new Bitmap(10, 10), -10, -20, Color.Red }; 1309yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Red }; 1310yield return new object[] { new Bitmap(10, 10), 1, 2, Color.Red }; 1316yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), -10, -20, Color.Red }; 1317yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), 0, 0, Color.Red }; 1318yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), 1, 2, Color.Red }; 1341Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawImageDisabled(null, image, 0, 0, Color.Red)); 1349Assert.Throws<NullReferenceException>(() => ControlPaint.DrawImageDisabled(graphics, null, 0, 0, Color.Red)); 1412yield return new object[] { new Rectangle(0, 0, 3, 4), glyph, Color.Red, Color.Blue }; 1413yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Blue }; 1418yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Black }; 1419yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.White }; 1420yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Empty }; 1421yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Transparent }; 1422yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Red }; 1423yield return new object[] { new Rectangle(1, 2, 4, 3), glyph, Color.Red, Color.Red }; 1424yield return new object[] { new Rectangle(1, 2, 3, 3), glyph, Color.Red, Color.Red }; 1682yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, style }; 1690yield return new object[] { new Rectangle(1, 2, 4, 3), Color.Red, style }; 1691yield return new object[] { new Rectangle(1, 2, 3, 3), Color.Red, style }; 1707yield return new object[] { Point.Empty, Point.Empty, Color.Red }; 1708yield return new object[] { new Point(1, 2), new Point(1, 2), Color.Red }; 1709yield return new object[] { new Point(2, 3), new Point(1, 2), Color.Red }; 1711yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Red }; 1818yield return new object[] { active, Rectangle.Empty, Rectangle.Empty, Color.Red }; 1819yield return new object[] { active, new Rectangle(1, 2, -3, -4), new Rectangle(1, 2, -3, -4), Color.Red }; 1820yield return new object[] { active, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), Color.Red }; 1821yield return new object[] { active, new Rectangle(1, 2, 3, 4), new Rectangle(0, 1, 4, 5), Color.Red }; 1822yield return new object[] { active, new Rectangle(0, 1, 4, 5), new Rectangle(1, 2, 3, 4), Color.Red }; 1847Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSelectionFrame(null, active, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), Color.Red)); 1852yield return new object[] { Color.Red, Rectangle.Empty }; 1853yield return new object[] { Color.Red, new Rectangle(1, 2, -3, -4) }; 1854yield return new object[] { Color.Red, new Rectangle(0, 0, 3, 4) }; 1855yield return new object[] { Color.Red, new Rectangle(1, 2, 3, 4) }; 1860yield return new object[] { Color.Red, new Rectangle(1, 2, 3, 4) }; 1861yield return new object[] { Color.Red, new Rectangle(1, 2, 3, 4) }; 1862yield return new object[] { Color.Red, new Rectangle(1, 2, 4, 3) }; 1892Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, new Rectangle(1, 2, 3, 4))); 1893Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, 1, 2, 3, 4)); 1900yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), null }; 1901yield return new object[] { s, SystemFonts.MenuFont, Color.Red, RectangleF.Empty, new StringFormat() }; 1902yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, -3, -4), new StringFormat() }; 1903yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1931ControlPaint.DrawStringDisabled(graphics, s, null, Color.Red, new RectangleF(1, 2, 3, 4), null); 1934ControlPaint.DrawStringDisabled(graphics, s, null, Color.Red, new RectangleF(1, 2, 3, 4), null); 1941Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat())); 1948yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, 3, 4), TextFormatFlags.Default }; 1949yield return new object[] { s, SystemFonts.MenuFont, Color.Red, Rectangle.Empty, TextFormatFlags.VerticalCenter }; 1950yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, -3, -4), TextFormatFlags.VerticalCenter }; 1951yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, 3, 4), TextFormatFlags.VerticalCenter }; 1977Assert.Throws<ArgumentNullException>("dc", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, 3, 4), TextFormatFlags.Default)); 2010yield return new object[] { Rectangle.Empty, Color.Red }; 2011yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Red }; 2012yield return new object[] { new Rectangle(0, 0, 3, 4), Color.Red }; 2013yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red }; 2018yield return new object[] { new Rectangle(1, 2, 4, 3), Color.Red }; 2019yield return new object[] { new Rectangle(1, 2, 3, 3), Color.Red };
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
652owner.ForeColor = Color.Red; 762Assert.Equal(Color.Red, control.ForeColor); 802owner.ForeColor = Color.Red; 921Assert.Equal(Color.Red, control.ForeColor); 955owner.ForeColor = Color.Red; 998Assert.Equal(Color.Red, control.ForeColor); 1028owner.ForeColor = Color.Red; 1078Assert.Equal(Color.Red, control.ForeColor); 2355owner.ForeColor = Color.Red; 2356Assert.Equal(Color.Red, control.ForeColor); 2499owner.ForeColor = Color.Red; 2500Assert.Equal(Color.Red, control.ForeColor); 2631owner.ForeColor = Color.Red; 2632Assert.Equal(Color.Red, control.ForeColor); 2695owner.ForeColor = Color.Red; 2696Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\ControlTests.Handlers.cs (36)
2772yield return new object[] { true, Color.Red, null }; 2773yield return new object[] { true, Color.Red, new InvalidateEventArgs(Rectangle.Empty) }; 2774yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2775yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2785yield return new object[] { false, Color.Red, null }; 2786yield return new object[] { false, Color.Red, new InvalidateEventArgs(Rectangle.Empty) }; 2787yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2788yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2876yield return new object[] { true, Color.Red, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2877yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2878yield return new object[] { true, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 }; 2886yield return new object[] { false, Color.Red, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2887yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2888yield return new object[] { false, Color.Red, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 }; 3841yield return new object[] { true, Color.Red, backgroundImage, backgroundImageLayout }; 3845yield return new object[] { false, Color.Red, backgroundImage, backgroundImageLayout }; 3904yield return new object[] { parent, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 3908yield return new object[] { parent, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 3913yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3917yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3920yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3924yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3948yield return new object[] { parent, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 3950yield return new object[] { parent, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 3957yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3959yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3964yield return new object[] { parent, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3966yield return new object[] { parent, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 4076yield return new object[] { true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 4080yield return new object[] { false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 4085yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4089yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4092yield return new object[] { true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4096yield return new object[] { false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4227BackColor = Color.Red 4543ForeColor = Color.Red
System\Windows\Forms\ControlTests.Methods.cs (14)
4563yield return new object[] { true, Color.Red, null }; 4564yield return new object[] { true, Color.Red, Rectangle.Empty }; 4565yield return new object[] { true, Color.Red, new Rectangle(100, 200, 300, 400) }; 4566yield return new object[] { true, Color.Red, new Rectangle(1, 2, 300, 400) }; 4576yield return new object[] { false, Color.Red, null }; 4577yield return new object[] { false, Color.Red, Rectangle.Empty }; 4578yield return new object[] { false, Color.Red, new Rectangle(100, 200, 300, 400) }; 4579yield return new object[] { false, Color.Red, new Rectangle(1, 2, 300, 400) }; 4667yield return new object[] { true, Color.Red, Rectangle.Empty, 0 }; 4668yield return new object[] { true, Color.Red, new Rectangle(100, 200, 300, 400), 0 }; 4669yield return new object[] { true, Color.Red, new Rectangle(1, 2, 300, 400), 0 }; 4677yield return new object[] { false, Color.Red, Rectangle.Empty, 0 }; 4678yield return new object[] { false, Color.Red, new Rectangle(100, 200, 300, 400), 0 }; 4679yield return new object[] { false, Color.Red, new Rectangle(1, 2, 300, 400), 0 };
System\Windows\Forms\ControlTests.Properties.cs (76)
1263yield return new object[] { Color.Red, Color.Red }; 1341yield return new object[] { Color.Red, Color.Red, 1 }; 1388control.BackColor = Color.Red; 1389Assert.Equal(Color.Red, control.BackColor); 1393control.BackColor = Color.Red; 1394Assert.Equal(Color.Red, control.BackColor); 1404control.BackColor = Color.Red; 1405Assert.Equal(Color.Red, control.BackColor); 1423control.BackColor = Color.Red; 1424Assert.Equal(Color.Red, control.BackColor); 1475control.BackColor = Color.Red; 1476Assert.Equal(Color.Red, control.BackColor); 1477Assert.Equal(Color.Red, child1.BackColor); 1478Assert.Equal(Color.Red, child2.BackColor); 1484control.BackColor = Color.Red; 1485Assert.Equal(Color.Red, control.BackColor); 1486Assert.Equal(Color.Red, child1.BackColor); 1487Assert.Equal(Color.Red, child2.BackColor); 1505control.BackColor = Color.Red; 1506Assert.Equal(Color.Red, control.BackColor); 1507Assert.Equal(Color.Red, child1.BackColor); 1508Assert.Equal(Color.Red, child2.BackColor); 1555control.BackColor = Color.Red; 1556Assert.Equal(Color.Red, control.BackColor); 1564control.BackColor = Color.Red; 1565Assert.Equal(Color.Red, control.BackColor); 1585control.BackColor = Color.Red; 1586Assert.Equal(Color.Red, control.BackColor); 1608control.BackColor = Color.Red; 1609Assert.Equal(Color.Red, control.BackColor); 1624control.BackColor = Color.Red; 1625Assert.Equal(Color.Red, control.BackColor); 5381yield return new object[] { Color.Red, Color.Red, 1 }; 5429control.ForeColor = Color.Red; 5430Assert.Equal(Color.Red, control.ForeColor); 5434control.ForeColor = Color.Red; 5435Assert.Equal(Color.Red, control.ForeColor); 5445control.ForeColor = Color.Red; 5446Assert.Equal(Color.Red, control.ForeColor); 5464control.ForeColor = Color.Red; 5465Assert.Equal(Color.Red, control.ForeColor); 5516control.ForeColor = Color.Red; 5517Assert.Equal(Color.Red, control.ForeColor); 5518Assert.Equal(Color.Red, child1.ForeColor); 5519Assert.Equal(Color.Red, child2.ForeColor); 5525control.ForeColor = Color.Red; 5526Assert.Equal(Color.Red, control.ForeColor); 5527Assert.Equal(Color.Red, child1.ForeColor); 5528Assert.Equal(Color.Red, child2.ForeColor); 5546control.ForeColor = Color.Red; 5547Assert.Equal(Color.Red, control.ForeColor); 5548Assert.Equal(Color.Red, child1.ForeColor); 5549Assert.Equal(Color.Red, child2.ForeColor); 5596control.ForeColor = Color.Red; 5597Assert.Equal(Color.Red, control.ForeColor); 5605control.ForeColor = Color.Red; 5606Assert.Equal(Color.Red, control.ForeColor); 5626control.ForeColor = Color.Red; 5627Assert.Equal(Color.Red, control.ForeColor); 5642control.ForeColor = Color.Red; 5643Assert.Equal(Color.Red, control.ForeColor); 5658control.ForeColor = Color.Red; 5659Assert.Equal(Color.Red, control.ForeColor); 10727ForeColor = Color.Red 10743ForeColor = Color.Red 10756BackColor = Color.Red, 10813Assert.Equal(Color.Red, control.ForeColor); 10829Assert.Equal(Color.Red, control.ForeColor); 10845Assert.Equal(Color.Red, control.ForeColor); 10859Assert.Equal(Color.Red, control.BackColor); 10901ForeColor = Color.Red 10917ForeColor = Color.Red 10930BackColor = Color.Red,
System\Windows\Forms\DataGridViewCellStyleTests.cs (31)
43BackColor = Color.Red, 60Assert.Equal(Color.Red, style.BackColor); 152BackColor = Color.Red 310ForeColor = Color.Red 528SelectionBackColor = Color.Red 554SelectionForeColor = Color.Red 621BackColor = Color.Red, 639Assert.Equal(Color.Red, style.BackColor); 664BackColor = Color.Red, 681Assert.Equal(Color.Red, style.BackColor); 712BackColor = Color.Red, 729Assert.Equal(Color.Red, style.BackColor); 779BackColor = Color.Red, 796Assert.Equal(Color.Red, style.BackColor); 860new DataGridViewCellStyle { BackColor = Color.Red }, 861new DataGridViewCellStyle { BackColor = Color.Red }, 866new DataGridViewCellStyle { BackColor = Color.Red }, 896new DataGridViewCellStyle { ForeColor = Color.Red }, 897new DataGridViewCellStyle { ForeColor = Color.Red }, 902new DataGridViewCellStyle { ForeColor = Color.Red }, 980new DataGridViewCellStyle { SelectionBackColor = Color.Red }, 981new DataGridViewCellStyle { SelectionBackColor = Color.Red }, 986new DataGridViewCellStyle { SelectionBackColor = Color.Red }, 992new DataGridViewCellStyle { SelectionForeColor = Color.Red }, 993new DataGridViewCellStyle { SelectionForeColor = Color.Red }, 998new DataGridViewCellStyle { SelectionForeColor = Color.Red }, 1053new DataGridViewCellStyle { BackColor = Color.Red }, 1068new DataGridViewCellStyle { ForeColor = Color.Red }, 1103new DataGridViewCellStyle { SelectionBackColor = Color.Red }, 1108new DataGridViewCellStyle { SelectionForeColor = Color.Red }, 1128BackColor = Color.Red,
System\Windows\Forms\DataGridViewRowTests.cs (6)
2072SelectionForeColor = Color.Red, 2089SelectionBackColor = Color.Red, 4186yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.Selected, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, true }; 4187yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.Selected, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, true }; 4188yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.None, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, true }; 4189yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.None, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, false };
System\Windows\Forms\DataGridViewTests.cs (8)
2929dataGrid.GridColor = Color.Red; 2932Assert.Equal(Color.Red, dataGrid.GridColor); 3167_dataGridView.ColumnHeadersDefaultCellStyle = new() { BackColor = Color.Red }; 3227_dataGridView.DefaultCellStyle = new() { BackColor = Color.Red }; 3267_dataGridView.GridColor = Color.Red; 3367_dataGridView.RowsDefaultCellStyle = new() { BackColor = Color.Red }; 3480TestEvent(nameof(DataGridView.BackColorChanged), nameof(DataGridView.BackColor), Color.Red, Color.Blue); 3501TestEvent(nameof(DataGridView.ForeColorChanged), nameof(DataGridView.ForeColor), Color.Red, Color.Blue);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
739BackColor = Color.Red, 950BackColor = Color.Red,
System\Windows\Forms\DateTimePickerTests.cs (7)
175var expectedColor = Color.Red; 197var expectedColor = Color.Red; 219var expectedColor = Color.Red; 241var expectedColor = Color.Red; 263var expectedColor = Color.Red; 697control.BackColor = Color.Red; 810control.ForeColor = Color.Red;
System\Windows\Forms\DrawItemEventArgsTests.cs (5)
39yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, Color.Red, Color.Blue }; 40yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, Color.Red, Color.Blue }; 41yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, Color.Red, Color.Blue }; 42yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, Color.Red, Color.Blue }; 66Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None, Color.Red, Color.Blue));
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (11)
14yield return new object[] { new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 15yield return new object[] { new Rectangle(-1, 2, -3, -4), 0, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 16yield return new object[] { new Rectangle(1, 2, 3, 4), 1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 40Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont)); 49DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont) 66yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 67yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 68yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 90DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, header, ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont); 99DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont); 106yield return new object[] { new Rectangle(1, 2, 3, 4), -1, ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont };
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
14yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(1, 2, 3, 4), "", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 15yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(-1, -2, -3, -4), "toolTipText", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 38yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), null, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 39yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), string.Empty, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 40yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), "tooltipText", Color.Red, Color.Blue, SystemFonts.DefaultFont };
System\Windows\Forms\FontDialogTests.cs (2)
166yield return new object[] { Color.Red, Color.Red };
System\Windows\Forms\FormTests.cs (18)
336yield return new object[] { true, Color.Red, 0.5 }; 347TransparencyKey = Color.Red, 445yield return new object[] { true, Color.Red, 0.5, 0 }; 456TransparencyKey = Color.Red 660TransparencyKey = Color.Red, 665Assert.Equal(Color.Red, control.TransparencyKey); 672Assert.Equal(Color.Red, control.TransparencyKey); 842control.TransparencyKey = Color.Red; 853Assert.Equal(Color.Red, control.TransparencyKey); 863Assert.Equal(Color.Red, control.TransparencyKey); 1269yield return new object[] { allowTransparency, Color.Red, true }; 1301yield return new object[] { allowTransparency, Color.Red }; 1335yield return new object[] { allowTransparency, Color.Red }; 1368yield return new object[] { allowTransparency, Color.Red }; 1452yield return new object[] { Color.Red, true, 2 }; 1526yield return new object[] { Color.Red }; 1774yield return new object[] { true, Color.Red, true, 0 }; 1778yield return new object[] { false, Color.Red, true, 2 };
System\Windows\Forms\GroupBoxTests.cs (1)
1829foreach (Color foreColor in new Color[] { Color.Red, Color.Empty })
System\Windows\Forms\HtmlDocumentTests.cs (1)
320yield return new object[] { Color.Red, Color.FromArgb(0xFF, 0xFF, 0x00, 0x00), "#ff0000" };
System\Windows\Forms\ImageList.ImageCollectionTests.cs (11)
154yield return new object[] { PixelFormat.Format24bppRgb, Color.Red, Color.FromArgb(200, 50, 75, 100) }; 167yield return new object[] { PixelFormat.Format24bppRgb, Color.Red, Color.FromArgb(200, 50, 75, 100), Color.FromArgb(255, 50, 75, 100) }; 168yield return new object[] { PixelFormat.Format32bppRgb, Color.Red, Color.FromArgb(200, 50, 75, 100), Color.FromArgb(255, 50, 75, 100) }; 351image1.SetPixel(0, 0, Color.Red); 1156image1.SetPixel(0, 0, Color.Red); 1193image1.SetPixel(0, 0, Color.Red); 1305image1.SetPixel(0, 0, Color.Red); 1339image1.SetPixel(0, 0, Color.Red); 1403image1.SetPixel(0, 0, Color.Red); 1443image1.SetPixel(0, 0, Color.Red); 1495image1.SetPixel(0, 0, Color.Red);
System\Windows\Forms\ImageListTests.cs (16)
700list.TransparentColor = Color.Red; 701Assert.Equal(Color.Red, list.TransparentColor); 706list.TransparentColor = Color.Red; 707Assert.Equal(Color.Red, list.TransparentColor); 719list.TransparentColor = Color.Red; 720Assert.Equal(Color.Red, list.TransparentColor); 751list.TransparentColor = Color.Red; 752Assert.Equal(Color.Red, list.TransparentColor); 757list.TransparentColor = Color.Red; 758Assert.Equal(Color.Red, list.TransparentColor); 770list.TransparentColor = Color.Red; 771Assert.Equal(Color.Red, list.TransparentColor); 784list.TransparentColor = Color.Red; 785Assert.Equal(Color.Red, list.TransparentColor); 801list.TransparentColor = Color.Red; 802Assert.Equal(Color.Red, list.TransparentColor);
System\Windows\Forms\ListBoxTests.cs (28)
350yield return new object[] { Color.Red, Color.Red }; 373yield return new object[] { Color.Red, Color.Red, 1 }; 419control.BackColor = Color.Red; 420Assert.Equal(Color.Red, control.BackColor); 424control.BackColor = Color.Red; 425Assert.Equal(Color.Red, control.BackColor); 435control.BackColor = Color.Red; 436Assert.Equal(Color.Red, control.BackColor); 447control.BackColor = Color.Red; 448Assert.Equal(Color.Red, control.BackColor); 463control.BackColor = Color.Red; 464Assert.Equal(Color.Red, control.BackColor); 1244yield return new object[] { Color.Red, Color.Red }; 1270yield return new object[] { Color.Red, Color.Red, 1 }; 1316control.ForeColor = Color.Red; 1317Assert.Equal(Color.Red, control.ForeColor); 1321control.ForeColor = Color.Red; 1322Assert.Equal(Color.Red, control.ForeColor); 1332control.ForeColor = Color.Red; 1333Assert.Equal(Color.Red, control.ForeColor); 1344control.ForeColor = Color.Red; 1345Assert.Equal(Color.Red, control.ForeColor); 1360control.ForeColor = Color.Red; 1361Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\ListViewItemConverterTests.cs (8)
229new ListViewItem(["text"], "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont), 231new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont } 235new ListViewItem(["text"], 1, Color.Red, Color.Blue, SystemFonts.MenuFont), 237new object[] { new string[] { "text" }, 1, Color.Red, Color.Blue, SystemFonts.MenuFont } 241new ListViewItem(["text"], "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont, group), 243new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont } 247new ListViewItem(["text"], 1, Color.Red, Color.Blue, SystemFonts.MenuFont, group), 249new object[] { new string[] { "text" }, 1, Color.Red, Color.Blue, SystemFonts.MenuFont }
System\Windows\Forms\ListViewItemTests.cs (12)
47yield return new object[] { new string[] { "text" }, "imageKey", Color.Blue, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), "imageKey", Color.Blue, Color.Red, "text" }; 85yield return new object[] { new string[] { "text" }, 2, Color.Blue, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), Color.Blue, Color.Red, "text" }; 123yield return new object[] { new string[] { "text" }, "imageKey", Color.Blue, Color.Red, SystemFonts.MenuFont, "imageKey", Color.Blue, Color.Red, "text" }; 161yield return new object[] { new string[] { "text" }, 2, Color.Blue, Color.Red, SystemFonts.MenuFont, Color.Blue, Color.Red, "text" }; 850yield return new object[] { Color.Red, Color.Red }; 907yield return new object[] { Color.Red, Color.Red };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (9)
259yield return new object[] { string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 260yield return new object[] { "reasonable", Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, "reasonable" }; 389yield return new object[] { Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue }; 390yield return new object[] { Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue }; 420Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null, Color.Red, Color.Blue, SystemFonts.MenuFont));
System\Windows\Forms\ListViewSubItemConverterTests.cs (2)
60new ListViewItem.ListViewSubItem(null, "text", Color.Red, Color.Blue, SystemFonts.MenuFont), 62new object[] { null, "text", Color.Red, Color.Blue, SystemFonts.MenuFont }
System\Windows\Forms\ListViewSubItemTests.cs (28)
56yield return new object[] { new ListViewItem(), string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 57yield return new object[] { new ListViewItem(), "reasonable", Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, "reasonable" }; 58yield return new object[] { new ListViewItem() { BackColor = Color.Yellow, ForeColor = Color.Yellow, Font = SystemFonts.StatusFont }, string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 62yield return new object[] { item, "reasonable", Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, "reasonable" }; 84BackColor = Color.Red 90Assert.Equal(Color.Red, subItem.BackColor); 102BackColor = Color.Red 117BackColor = Color.Red 126Assert.Equal(Color.Red, subItem.BackColor); 135yield return new object[] { Color.Red, Color.Red }; 157yield return new object[] { Color.Empty, Color.Red }; 166BackColor = Color.Red 333ForeColor = Color.Red 339Assert.Equal(Color.Red, subItem.ForeColor); 351ForeColor = Color.Red 366ForeColor = Color.Red 375Assert.Equal(Color.Red, subItem.ForeColor); 387yield return new object[] { Color.Red, Color.Red }; 408yield return new object[] { Color.Empty, Color.Red }; 417ForeColor = Color.Red 557var subItem = new ListViewItem.ListViewSubItem(owner, "text", Color.Red, Color.Blue, SystemFonts.MenuFont); 573yield return new object[] { new ListViewItem.ListViewSubItem(null, "header", Color.Red, Color.Blue, SystemFonts.MenuFont) { Name = "name", Tag = "tag" } };
System\Windows\Forms\ListViewTests.cs (20)
453yield return new object[] { Color.Red, Color.Red }; 476yield return new object[] { Color.Red, Color.Red, 1 }; 532control.BackColor = Color.Red; 533Assert.Equal(Color.Red, control.BackColor); 537control.BackColor = Color.Red; 538Assert.Equal(Color.Red, control.BackColor); 548control.BackColor = Color.Red; 549Assert.Equal(Color.Red, control.BackColor); 1312yield return new object[] { Color.Red, Color.Red }; 1338yield return new object[] { Color.Red, Color.Red, 1 }; 1394control.ForeColor = Color.Red; 1395Assert.Equal(Color.Red, control.ForeColor); 1399control.ForeColor = Color.Red; 1400Assert.Equal(Color.Red, control.ForeColor); 1410control.ForeColor = Color.Red; 1411Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\MdiClientTests.cs (10)
121control.BackColor = Color.Red; 122Assert.Equal(Color.Red, control.BackColor); 126control.BackColor = Color.Red; 127Assert.Equal(Color.Red, control.BackColor); 137control.BackColor = Color.Red; 138Assert.Equal(Color.Red, control.BackColor); 149control.BackColor = Color.Red; 150Assert.Equal(Color.Red, control.BackColor); 165control.BackColor = Color.Red; 166Assert.Equal(Color.Red, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (29)
282yield return new object[] { Color.Red, Color.Red }; 305yield return new object[] { Color.Red, Color.Red, 1 }; 351control.BackColor = Color.Red; 352Assert.Equal(Color.Red, control.BackColor); 356control.BackColor = Color.Red; 357Assert.Equal(Color.Red, control.BackColor); 367control.BackColor = Color.Red; 368Assert.Equal(Color.Red, control.BackColor); 925yield return new object[] { Color.Red, Color.Red }; 951yield return new object[] { Color.Red, Color.Red, 1 }; 997control.ForeColor = Color.Red; 998Assert.Equal(Color.Red, control.ForeColor); 1002control.ForeColor = Color.Red; 1003Assert.Equal(Color.Red, control.ForeColor); 1013control.ForeColor = Color.Red; 1014Assert.Equal(Color.Red, control.ForeColor); 2714yield return new object[] { Color.Red }; 2773yield return new object[] { Color.Red }; 2927yield return new object[] { Color.Red }; 4520ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTrailingForeColor(), () => calendar.TrailingForeColor = Color.Red); 4521ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTitleForeColor(), () => calendar.TitleForeColor = Color.Red); 4522ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTitleBackColor(), () => calendar.TitleBackColor = Color.Red); 4581setColor(calendar, Color.Red); 4582getColor(calendar).Should().Be(Color.Red); 4587setColor(calendar, Color.Red);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
81value.ForeColor = Color.Red; 87Assert.Equal(Color.Red, bag.ForeColor); 112original.ForeColor = Color.Red; 126Assert.Equal(Color.Red, bag.ForeColor);
System\Windows\Forms\PictureBoxTests.cs (6)
446control.ForeColor = Color.Red; 447Assert.Equal(Color.Red, control.ForeColor); 451control.ForeColor = Color.Red; 452Assert.Equal(Color.Red, control.ForeColor); 462control.ForeColor = Color.Red; 463Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\ProgressBarTests.cs (12)
552yield return new object[] { Color.Red, Color.Red, 1 }; 600control.ForeColor = Color.Red; 601Assert.Equal(Color.Red, control.ForeColor); 605control.ForeColor = Color.Red; 606Assert.Equal(Color.Red, control.ForeColor); 616control.ForeColor = Color.Red; 617Assert.Equal(Color.Red, control.ForeColor); 628control.ForeColor = Color.Red; 629Assert.Equal(Color.Red, control.ForeColor); 644control.ForeColor = Color.Red; 645Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (107)
61Assert.Equal(Color.Red, control.CommandsActiveLinkColor); 303yield return new object[] { Color.Red, Color.Red, 1 }; 354control.BackColor = Color.Red; 355Assert.Equal(Color.Red, control.BackColor); 359control.BackColor = Color.Red; 360Assert.Equal(Color.Red, control.BackColor); 370control.BackColor = Color.Red; 371Assert.Equal(Color.Red, control.BackColor); 382control.BackColor = Color.Red; 383Assert.Equal(Color.Red, control.BackColor); 398control.BackColor = Color.Red; 399Assert.Equal(Color.Red, control.BackColor); 699yield return new object[] { Color.Red }; 756control.CategoryForeColor = Color.Red; 757Assert.Equal(Color.Red, control.CategoryForeColor); 772control.CategoryForeColor = Color.Red; 773Assert.Equal(Color.Red, control.CategoryForeColor); 834control.CategorySplitterColor = Color.Red; 835Assert.Equal(Color.Red, control.CategorySplitterColor); 850control.CategorySplitterColor = Color.Red; 851Assert.Equal(Color.Red, control.CategorySplitterColor); 861yield return new object[] { Color.Empty, Color.Red }; 862yield return new object[] { Color.Red, Color.Red }; 924Assert.Equal(Color.Red, control.CommandsActiveLinkColor); 940Assert.Equal(Color.Red, control.CommandsActiveLinkColor); 997control.CommandsBackColor = Color.Red; 998Assert.Equal(Color.Red, control.CommandsBackColor); 1013control.CommandsBackColor = Color.Red; 1014Assert.Equal(Color.Red, control.CommandsBackColor); 1082control.CommandsBorderColor = Color.Red; 1083Assert.Equal(Color.Red, control.CommandsBorderColor); 1098control.CommandsBorderColor = Color.Red; 1099Assert.Equal(Color.Red, control.CommandsBorderColor); 1110yield return new object[] { Color.Red, Color.Red }; 1167control.CommandsDisabledLinkColor = Color.Red; 1168Assert.Equal(Color.Red, control.CommandsDisabledLinkColor); 1183control.CommandsDisabledLinkColor = Color.Red; 1184Assert.Equal(Color.Red, control.CommandsDisabledLinkColor); 1245control.CommandsForeColor = Color.Red; 1246Assert.Equal(Color.Red, control.CommandsForeColor); 1261control.CommandsForeColor = Color.Red; 1262Assert.Equal(Color.Red, control.CommandsForeColor); 1273yield return new object[] { Color.Red, Color.Red }; 1330control.CommandsLinkColor = Color.Red; 1331Assert.Equal(Color.Red, control.CommandsLinkColor); 1346control.CommandsLinkColor = Color.Red; 1347Assert.Equal(Color.Red, control.CommandsLinkColor); 1494control.DisabledItemForeColor = Color.Red; 1495Assert.Equal(Color.Red, control.DisabledItemForeColor); 1510control.DisabledItemForeColor = Color.Red; 1511Assert.Equal(Color.Red, control.DisabledItemForeColor); 1559Assert.Equal(Color.Red, control.CommandsActiveLinkColor); 1569Assert.Equal(Color.Red, control.CommandsActiveLinkColor); 1630yield return new object[] { Color.Red, Color.Red, 1 }; 1679control.ForeColor = Color.Red; 1680Assert.Equal(Color.Red, control.ForeColor); 1684control.ForeColor = Color.Red; 1685Assert.Equal(Color.Red, control.ForeColor); 1695control.ForeColor = Color.Red; 1696Assert.Equal(Color.Red, control.ForeColor); 1707control.ForeColor = Color.Red; 1708Assert.Equal(Color.Red, control.ForeColor); 1723control.ForeColor = Color.Red; 1724Assert.Equal(Color.Red, control.ForeColor); 1785control.HelpBackColor = Color.Red; 1786Assert.Equal(Color.Red, control.HelpBackColor); 1801control.HelpBackColor = Color.Red; 1802Assert.Equal(Color.Red, control.HelpBackColor); 1870control.HelpBorderColor = Color.Red; 1871Assert.Equal(Color.Red, control.HelpBorderColor); 1886control.HelpBorderColor = Color.Red; 1887Assert.Equal(Color.Red, control.HelpBorderColor); 1948control.HelpForeColor = Color.Red; 1949Assert.Equal(Color.Red, control.HelpForeColor); 1964control.HelpForeColor = Color.Red; 1965Assert.Equal(Color.Red, control.HelpForeColor); 2204control.LineColor = Color.Red; 2205Assert.Equal(Color.Red, control.LineColor); 2220control.LineColor = Color.Red; 2221Assert.Equal(Color.Red, control.LineColor); 2451control.SelectedItemWithFocusBackColor = Color.Red; 2452Assert.Equal(Color.Red, control.SelectedItemWithFocusBackColor); 2467control.SelectedItemWithFocusBackColor = Color.Red; 2468Assert.Equal(Color.Red, control.SelectedItemWithFocusBackColor); 2529control.SelectedItemWithFocusForeColor = Color.Red; 2530Assert.Equal(Color.Red, control.SelectedItemWithFocusForeColor); 2545control.SelectedItemWithFocusForeColor = Color.Red; 2546Assert.Equal(Color.Red, control.SelectedItemWithFocusForeColor); 3255control.ViewBackColor = Color.Red; 3256Assert.Equal(Color.Red, control.ViewBackColor); 3271control.ViewBackColor = Color.Red; 3272Assert.Equal(Color.Red, control.ViewBackColor); 3340control.ViewBorderColor = Color.Red; 3341Assert.Equal(Color.Red, control.ViewBorderColor); 3356control.ViewBorderColor = Color.Red; 3357Assert.Equal(Color.Red, control.ViewBorderColor); 3368yield return new object[] { Color.Red, Color.Red }; 3425control.ViewForeColor = Color.Red; 3426Assert.Equal(Color.Red, control.ViewForeColor); 3441control.ViewForeColor = Color.Red; 3442Assert.Equal(Color.Red, control.ViewForeColor);
System\Windows\Forms\PropertyStoreTests.cs (1)
30{ 15, Color.Red },
System\Windows\Forms\RichTextBoxTests.cs (32)
647yield return new object[] { Color.Red, Color.Red }; 670yield return new object[] { Color.Red, Color.Red, 1 }; 716control.BackColor = Color.Red; 717Assert.Equal(Color.Red, control.BackColor); 721control.BackColor = Color.Red; 722Assert.Equal(Color.Red, control.BackColor); 732control.BackColor = Color.Red; 733Assert.Equal(Color.Red, control.BackColor); 1681yield return new object[] { Color.Red, Color.Red }; 1707yield return new object[] { Color.Red, Color.Red, 1 }; 1792control.ForeColor = Color.Red; 1793Assert.Equal(Color.Red, control.ForeColor); 1797control.ForeColor = Color.Red; 1798Assert.Equal(Color.Red, control.ForeColor); 1808control.ForeColor = Color.Red; 1809Assert.Equal(Color.Red, control.ForeColor); 3839yield return new object[] { 0, CFE_EFFECTS.CFE_AUTOBACKCOLOR, 0x78563412, Color.Red }; 3840yield return new object[] { 0, CFE_EFFECTS.CFE_AUTOBACKCOLOR | CFE_EFFECTS.CFE_ALLCAPS, 0x78563412, Color.Red }; 3844yield return new object[] { CFM_MASK.CFM_BACKCOLOR, CFE_EFFECTS.CFE_AUTOBACKCOLOR, 0x78563412, Color.Red }; 3861BackColor = Color.Red 3881BackColor = Color.Red 3908yield return new object[] { Color.Red }; 3932yield return new object[] { Color.Red, Color.Red }; 3983yield return new object[] { Color.Red }; 4560yield return new object[] { Color.Red, Color.Red }; 4628yield return new object[] { Color.Red };
System\Windows\Forms\ScrollableControlTests.cs (20)
1515yield return new object[] { hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout }; 1519yield return new object[] { hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout }; 1588yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 1592yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 1597yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1601yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1604yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1608yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1631yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 1633yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 1647yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1651yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1654yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1658yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1788yield return new object[] { hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 1792yield return new object[] { hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 1797yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1801yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1804yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1808yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ScrollBarTests.cs (12)
223control.BackColor = Color.Red; 224Assert.Equal(Color.Red, control.BackColor); 228control.BackColor = Color.Red; 229Assert.Equal(Color.Red, control.BackColor); 239control.BackColor = Color.Red; 240Assert.Equal(Color.Red, control.BackColor); 572control.ForeColor = Color.Red; 573Assert.Equal(Color.Red, control.ForeColor); 577control.ForeColor = Color.Red; 578Assert.Equal(Color.Red, control.ForeColor); 588control.ForeColor = Color.Red; 589Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\SplitterTests.cs (8)
812yield return new object[] { Color.Red, Color.Red, 1 }; 860control.ForeColor = Color.Red; 861Assert.Equal(Color.Red, control.ForeColor); 865control.ForeColor = Color.Red; 866Assert.Equal(Color.Red, control.ForeColor); 876control.ForeColor = Color.Red; 877Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\TabControlTests.cs (12)
528yield return new object[] { Color.Red }; 594control.BackColor = Color.Red; 599control.BackColor = Color.Red; 610control.BackColor = Color.Red; 939yield return new object[] { Color.Red, Color.Red, 1 }; 988control.ForeColor = Color.Red; 989Assert.Equal(Color.Red, control.ForeColor); 993control.ForeColor = Color.Red; 994Assert.Equal(Color.Red, control.ForeColor); 1004control.ForeColor = Color.Red; 1005Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\TabPageTests.cs (22)
826yield return new object[] { Color.Red, Color.Red, 1 }; 873control.BackColor = Color.Red; 874Assert.Equal(Color.Red, control.BackColor); 878control.BackColor = Color.Red; 879Assert.Equal(Color.Red, control.BackColor); 889control.BackColor = Color.Red; 890Assert.Equal(Color.Red, control.BackColor); 3963yield return new object[] { true, Color.Red, backgroundImage, backgroundImageLayout }; 3967yield return new object[] { false, Color.Red, backgroundImage, backgroundImageLayout }; 4017yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 4021yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 4026yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4030yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4033yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4037yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4156yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 4160yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 4165yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4169yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4172yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4176yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\TextRendererTests.cs (99)
21yield return new object[] { hint, text, null, Point.Empty, Color.Red }; 22yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red }; 50yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.Blue }; 51yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.Blue }; 56yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Red }; 57yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Black }; 58yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.White }; 59yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Transparent }; 60yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Empty }; 84yield return new object[] { hint, text, null, Point.Empty, Color.Red, TextFormatFlags.Default, }; 85yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, TextFormatFlags.Default, }; 91yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.HorizontalCenter }; 92yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 93yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.Bottom | TextFormatFlags.Right }; 94yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.SingleLine }; 95yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, (TextFormatFlags)1024 }; 96yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.RightToLeft }; 97yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, (TextFormatFlags)int.MaxValue }; 121yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default, }; 122yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.Blue, TextFormatFlags.Default, }; 127yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Red, TextFormatFlags.Default, }; 128yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Black, TextFormatFlags.Default, }; 129yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.White, TextFormatFlags.Default, }; 130yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Transparent, TextFormatFlags.Default, }; 131yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Empty, TextFormatFlags.Default, }; 133yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 134yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Bottom | TextFormatFlags.Right }; 135yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 136yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, (TextFormatFlags)1024 }; 137yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.RightToLeft }; 138yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, (TextFormatFlags)int.MaxValue }; 162yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red }; 163yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red }; 164yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red }; 165yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 3, 4), Color.Red }; 166yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red }; 194yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.Blue }; 195yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.Blue }; 196yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.Blue }; 197yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue }; 202yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Red }; 203yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Black }; 204yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.White }; 205yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Transparent }; 206yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Empty }; 230yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, TextFormatFlags.Default, }; 231yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, TextFormatFlags.Default, }; 232yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, TextFormatFlags.Default, }; 233yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.Default, }; 239yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.HorizontalCenter }; 240yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 241yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.Bottom | TextFormatFlags.Right }; 242yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.SingleLine }; 243yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, TextFormatFlags.SingleLine }; 244yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, (TextFormatFlags)1024 }; 245yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.RightToLeft }; 246yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, (TextFormatFlags)int.MaxValue }; 270yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.Blue, TextFormatFlags.Default, }; 271yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.Blue, TextFormatFlags.Default, }; 273yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Default, }; 278yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Red, TextFormatFlags.Default, }; 279yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Black, TextFormatFlags.Default, }; 280yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.White, TextFormatFlags.Default, }; 281yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Transparent, TextFormatFlags.Default, }; 282yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Empty, TextFormatFlags.Default, }; 284yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 285yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Bottom | TextFormatFlags.Right }; 286yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 287yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 288yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, (TextFormatFlags)1024 }; 289yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.RightToLeft }; 290yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, (TextFormatFlags)int.MaxValue }; 323TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red); 327TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue); 331TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.Default); 335TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default); 339TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red); 343TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.Default); 347TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue); 351TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Default); 355TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red); 359TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue); 363TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.Default); 367TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default); 371TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red); 375TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.Default); 379TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue); 383TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Default); 391Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.DrawText(null, "text", SystemFonts.MenuFont, Point.Empty, Color.Red)); 678Color.Red, 687State.TextColor(Color.Red))); 701Color.Red, 710State.TextColor(Color.Red))); 771Color.Red, 786State.TextColor(Color.Red)));
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (1)
62yield return new object[] { Color.Red };
System\Windows\Forms\ToolStripButtonTests.cs (5)
1278ForeColor = Color.Red, 1316Assert.Equal(Color.Red, e.TextColor); 1369ForeColor = Color.Red, 1407Assert.Equal(Color.Red, e.TextColor); 1468ForeColor = Color.Red,
System\Windows\Forms\ToolStripContentPanelTests.cs (10)
626yield return new object[] { Color.Red, Color.Red }; 658yield return new object[] { Color.Red, Color.Red, Color.Blue }; 699control.BackColor = Color.Red; 700Assert.Equal(Color.Red, control.BackColor); 704control.BackColor = Color.Red; 705Assert.Equal(Color.Red, control.BackColor); 715control.BackColor = Color.Red; 716Assert.Equal(Color.Red, control.BackColor);
System\Windows\Forms\ToolStripControlHostTests.cs (31)
27BackColor = Color.Red, 297item.BackColor = Color.Red; 298Assert.Equal(Color.Red, item.BackColor); 302item.BackColor = Color.Red; 303Assert.Equal(Color.Red, item.BackColor); 313item.BackColor = Color.Red; 314Assert.Equal(Color.Red, item.BackColor); 325Assert.Throws<ObjectDisposedException>(() => item.BackColor = Color.Red); 336item.BackColor = Color.Red; 337Assert.Equal(Color.Red, item.BackColor); 367item.BackColor = Color.Red; 368Assert.Equal(Color.Red, item.BackColor); 546c.BackColor = Color.Red; 547Assert.Equal(Color.Red, c.BackColor); 548Assert.Equal(Color.Red, item.BackColor); 629c.ForeColor = Color.Red; 630Assert.Equal(Color.Red, c.ForeColor); 631Assert.Equal(Color.Red, item.ForeColor); 1116item.ForeColor = Color.Red; 1117Assert.Equal(Color.Red, item.ForeColor); 1121item.ForeColor = Color.Red; 1122Assert.Equal(Color.Red, item.ForeColor); 1132item.ForeColor = Color.Red; 1133Assert.Equal(Color.Red, item.ForeColor); 1144Assert.Throws<ObjectDisposedException>(() => item.ForeColor = Color.Red); 1155item.ForeColor = Color.Red; 1156Assert.Equal(Color.Red, item.ForeColor); 1186item.ForeColor = Color.Red; 1187Assert.Equal(Color.Red, item.ForeColor); 1207foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 1333foreach (Color color in new Color[] { Color.Empty, Color.Red })
System\Windows\Forms\ToolStripDropDownTests.cs (6)
1736control.ForeColor = Color.Red; 1737Assert.Equal(Color.Red, control.ForeColor); 1741control.ForeColor = Color.Red; 1742Assert.Equal(Color.Red, control.ForeColor); 1752control.ForeColor = Color.Red; 1753Assert.Equal(Color.Red, control.ForeColor);
System\Windows\Forms\ToolStripItemTests.cs (49)
1548BackColor = Color.Red 1562BackColor = Color.Red 1568Assert.Equal(Color.Red, item.BackColor); 1662yield return new object[] { Color.Red, Color.Red, 1 }; 1712item.BackColor = Color.Red; 1713Assert.Equal(Color.Red, item.BackColor); 1717item.BackColor = Color.Red; 1718Assert.Equal(Color.Red, item.BackColor); 1728item.BackColor = Color.Red; 1729Assert.Equal(Color.Red, item.BackColor); 1740item.BackColor = Color.Red; 1741Assert.Equal(Color.Red, item.BackColor); 1756item.BackColor = Color.Red; 1757Assert.Equal(Color.Red, item.BackColor); 3238ForeColor = Color.Red 3252ForeColor = Color.Red 3258Assert.Equal(Color.Red, item.ForeColor); 3355yield return new object[] { Color.Red, Color.Red, 1 }; 3405item.ForeColor = Color.Red; 3406Assert.Equal(Color.Red, item.ForeColor); 3410item.ForeColor = Color.Red; 3411Assert.Equal(Color.Red, item.ForeColor); 3421item.ForeColor = Color.Red; 3422Assert.Equal(Color.Red, item.ForeColor); 3433item.ForeColor = Color.Red; 3434Assert.Equal(Color.Red, item.ForeColor); 3449item.ForeColor = Color.Red; 3450Assert.Equal(Color.Red, item.ForeColor); 3781foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 3811foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 3885foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 5599foreach (Color color in new Color[] { Color.Empty, Color.Red }) 5632ImageTransparentColor = Color.Red 5667yield return new object[] { null, Color.Red, 0 }; 5669yield return new object[] { new Bitmap(10, 10), Color.Red, 1 }; 5671yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Red, 1 }; 5673yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Red, 1 }; 5734yield return new object[] { null, Color.Red, 1 }; 5736yield return new object[] { new Bitmap(10, 10), Color.Red, 1 }; 5738yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Red, 1 }; 5740yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Red, 1 }; 5784item.ImageTransparentColor = Color.Red; 5785Assert.Equal(Color.Red, item.ImageTransparentColor); 5800item.ImageTransparentColor = Color.Red; 5801Assert.Equal(Color.Red, item.ImageTransparentColor); 12525item.BackColor = Color.Red; 12619item.ForeColor = Color.Red;
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (8)
13yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top }; 14yield return new object[] { new ToolStripButton() { RightToLeft = RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Bottom }; 38yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.MiddleCenter, TextFormatFlags.Default | TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 39yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.BottomRight, TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.HidePrefix }; 40yield return new object[] { new ToolStripButton() { RightToLeft = RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, (ContentAlignment)(-1), TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.RightToLeft | TextFormatFlags.HidePrefix }; 66Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top)); 67Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.TopLeft)); 73yield return new object[] { Color.Red };
System\Windows\Forms\ToolStripLabelTests.cs (3)
106Color expectedColor = Color.Red; 197_toolStripLabel.ActiveLinkColor = Color.Red; 223{ nameof(ToolStripLabel.ActiveLinkColor), Color.Red, true },
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
276BackColor = Color.Red,
System\Windows\Forms\ToolStripRendererTests.cs (10)
31yield return new object[] { new SubToolStripItem(), new Rectangle(1, 2, 3, 4), Color.Red, arrowDirection }; 36yield return new object[] { new SubToolStripItem(), new Rectangle(1, 2, 3, 4), Color.Red, ArrowDirection.Left - 1 }; 37yield return new object[] { new SubToolStripItem(), new Rectangle(1, 2, 3, 4), Color.Red, ArrowDirection.Up + 1 }; 299yield return new object[] { new SubToolStripItem(), "Text", Rectangle.Empty, Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left }; 300yield return new object[] { new SubToolStripItem(), "Text", new Rectangle(1, 2, 0, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left }; 301yield return new object[] { new SubToolStripItem(), "Text", new Rectangle(1, 2, 3, 0), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left }; 302yield return new object[] { new SubToolStripItem(), "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left }; 303yield return new object[] { new SubToolStripItem() { Enabled = false }, "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left }; 304yield return new object[] { new SubToolStripItem() { TextDirection = ToolStripTextDirection.Vertical270 }, "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left }; 305yield return new object[] { new SubToolStripItem() { TextDirection = ToolStripTextDirection.Vertical90 }, "Text", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.MenuFont, TextFormatFlags.Left };
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (5)
30yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(0, 0, 100, 25), Color.Red }; 53yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Empty, Color.Red }; 56yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Blue, Color.Blue };
System\Windows\Forms\ToolStripSeparatorTests.cs (12)
362item.ForeColor = Color.Red; 363Assert.Equal(Color.Red, item.ForeColor); 367item.ForeColor = Color.Red; 368Assert.Equal(Color.Red, item.ForeColor); 378item.ForeColor = Color.Red; 379Assert.Equal(Color.Red, item.ForeColor); 390item.ForeColor = Color.Red; 391Assert.Equal(Color.Red, item.ForeColor); 406item.ForeColor = Color.Red; 407Assert.Equal(Color.Red, item.ForeColor); 417foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 527foreach (Color color in new Color[] { Color.Empty, Color.Red })
System\Windows\Forms\ToolStripTests.cs (28)
1060yield return new object[] { Color.Red, Color.Red }; 2701control.ForeColor = Color.Red; 2702Assert.Equal(Color.Red, control.ForeColor); 2706control.ForeColor = Color.Red; 2707Assert.Equal(Color.Red, control.ForeColor); 2717control.ForeColor = Color.Red; 2718Assert.Equal(Color.Red, control.ForeColor); 5856yield return new object[] { hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout }; 5860yield return new object[] { hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout }; 5930yield return new object[] { parent, hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 5934yield return new object[] { parent, hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 5939yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5943yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5946yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5950yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5981yield return new object[] { parent, hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout, expected1 }; 5983yield return new object[] { parent, hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout, expected1 }; 5997yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5999yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 6004yield return new object[] { parent, hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6006yield return new object[] { parent, hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6127yield return new object[] { hScroll, vScroll, true, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 6131yield return new object[] { hScroll, vScroll, false, Color.Red, backgroundImage, backgroundImageLayout, 0 }; 6136yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6140yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6143yield return new object[] { hScroll, vScroll, true, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6147yield return new object[] { hScroll, vScroll, false, Color.Red, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\TreeNodeTests.cs (18)
297yield return new object[] { Color.Red, 1 }; 335yield return new object[] { Color.Red }; 379yield return new object[] { Color.Red, 1 }; 424node.BackColor = Color.Red; 425Assert.Equal(Color.Red, node.BackColor); 429Assert.Equal(Color.Red, node.BackColor); 440node.BackColor = Color.Red; 441Assert.Equal(Color.Red, node.BackColor); 445Assert.Equal(Color.Red, node.BackColor); 738yield return new object[] { Color.Red, 1 }; 776yield return new object[] { Color.Red }; 820yield return new object[] { Color.Red, 1 }; 865node.ForeColor = Color.Red; 866Assert.Equal(Color.Red, node.ForeColor); 870Assert.Equal(Color.Red, node.ForeColor); 881node.ForeColor = Color.Red; 882Assert.Equal(Color.Red, node.ForeColor); 886Assert.Equal(Color.Red, node.ForeColor);
System\Windows\Forms\TreeViewTests.cs (24)
699yield return new object[] { Color.Red, Color.Red }; 722yield return new object[] { Color.Red, Color.Red, 1 }; 768control.BackColor = Color.Red; 769Assert.Equal(Color.Red, control.BackColor); 773control.BackColor = Color.Red; 774Assert.Equal(Color.Red, control.BackColor); 784control.BackColor = Color.Red; 785Assert.Equal(Color.Red, control.BackColor); 1463yield return new object[] { Color.Red, Color.Red }; 1510control.ForeColor = Color.Red; 1511Assert.Equal(Color.Red, control.ForeColor); 1515control.ForeColor = Color.Red; 1516Assert.Equal(Color.Red, control.ForeColor); 1526control.ForeColor = Color.Red; 1527Assert.Equal(Color.Red, control.ForeColor); 6020BackColor = Color.Red, 6048Assert.Equal(Color.Red, control.BackColor); 6066Assert.Equal(Color.Red, control.BackColor); 6100BackColor = Color.Red, 6129Assert.Equal(Color.Red, control.BackColor); 6147Assert.Equal(Color.Red, control.BackColor);
System\Windows\Forms\UpDownBaseTests.cs (19)
509yield return new object[] { Color.Red, Color.Red }; 532yield return new object[] { Color.Red, Color.Red, 1 }; 579control.BackColor = Color.Red; 580Assert.Equal(Color.Red, control.BackColor); 584control.BackColor = Color.Red; 585Assert.Equal(Color.Red, control.BackColor); 595control.BackColor = Color.Red; 596Assert.Equal(Color.Red, control.BackColor); 939yield return new object[] { Color.Red, Color.Red }; 1002control.ForeColor = Color.Red; 1003Assert.Equal(Color.Red, control.ForeColor); 1007control.ForeColor = Color.Red; 1008Assert.Equal(Color.Red, control.ForeColor); 1018control.ForeColor = Color.Red; 1019Assert.Equal(Color.Red, control.ForeColor); 2229foreach (Color backColor in new Color[] { Color.Red, Color.Empty })
TextBoxBaseTests.cs (18)
384yield return new object[] { Color.Red, Color.Red }; 418control.BackColor = Color.Red; 419Assert.Equal(Color.Red, control.BackColor); 423control.BackColor = Color.Red; 424Assert.Equal(Color.Red, control.BackColor); 434control.BackColor = Color.Red; 435Assert.Equal(Color.Red, control.BackColor); 1165yield return new object[] { Color.Red, Color.Red }; 1191yield return new object[] { Color.Red, Color.Red, 1 }; 1237control.ForeColor = Color.Red; 1238Assert.Equal(Color.Red, control.ForeColor); 1242control.ForeColor = Color.Red; 1243Assert.Equal(Color.Red, control.ForeColor); 1253control.ForeColor = Color.Red; 1254Assert.Equal(Color.Red, control.ForeColor);
ToolStripContainerTests.cs (2)
60_toolStripContainer.BackColor = Color.Red; 208_toolStripContainer.ForeColor = Color.Red;
TrackBarTests.cs (4)
684yield return new object[] { Color.Red }; 751control.ForeColor = Color.Red; 756control.ForeColor = Color.Red; 767control.ForeColor = Color.Red;
System.Windows.Forms.TestUtilities (4)
CommonTestHelperEx.cs (4)
17{ Color.Red, Color.Red }, 26{ Color.Red, Color.Red },
System.Windows.Forms.UI.IntegrationTests (13)
PropertyGridTests.cs (13)
109_propertyGrid.CommandsBorderColor = Color.Red; 110_propertyGrid.CommandsBorderColor.Should().Be(Color.Red); 136_propertyGrid.SelectedItemWithFocusForeColor = Color.Red; 137_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(Color.Red); 163_propertyGrid.ForeColor = Color.Red; 164_propertyGrid.ForeColor.Should().Be(Color.Red); 219_propertyGrid.CommandsForeColor = Color.Red; 220_propertyGrid.CommandsForeColor.Should().Be(Color.Red); 269_propertyGrid.LineColor = Color.Red; 270_propertyGrid.LineColor.Should().Be(Color.Red); 340_propertyGrid.ViewBackColor = Color.Red; 341_propertyGrid.ViewBackColor.Should().Be(Color.Red); 386_propertyGrid.CommandsActiveLinkColor.Should().Be(Color.Red);