11 writes to Color
System.Drawing.Common.Tests (7)
System\Drawing\PensTests.cs (1)
164AssertExtensions.Throws<ArgumentException>(null, () => pen.Color = Color.AliceBlue);
System\Drawing\PenTests.cs (5)
271pen.Color = Color.Red; 274pen.Color = Color.Red; 287pen.Color = Color.Red; 290AssertExtensions.Throws<ArgumentException>(null, () => pen.Color = Color.Black); 301AssertExtensions.Throws<ArgumentException>(null, () => pen.Color = Color.Red);
System\Drawing\SystemPensTest.cs (1)
63AssertExtensions.Throws<ArgumentException>(null, () => pen.Color = Color.AliceBlue);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
1910borderPen.Color = Color.Black; 1930borderPen.Color = Color.Black; 1939borderPen.Color = Color.Black; 1949borderPen.Color = Color.Black;
15 references to Color
System.Drawing.Common.Tests (15)
System\Drawing\PensTests.cs (1)
162Assert.Equal(expectedColor, pen.Color);
System\Drawing\PenTests.cs (13)
70Assert.Equal(Color.FromArgb(Color.Red.ToArgb()), pen.Color); 71Assert.Equal(pen.Color, Assert.IsType<SolidBrush>(pen.Brush).Color); 96Assert.Equal(Color.Red, pen.Color); 111Assert.Equal(Color.Red, pen.Color); 214Assert.Equal(pen.Color, clone.Color); 239Assert.Equal(Color.FromArgb(Color.Red.ToArgb()), pen.Color); 260AssertExtensions.Throws<ArgumentException>(null, () => pen.Color); 272Assert.Equal(Color.Red, pen.Color); 275Assert.Equal(Color.Red, pen.Color); 285Assert.Equal(Color.Red, pen.Color); 288Assert.Equal(Color.Red, pen.Color); 300AssertExtensions.Throws<ArgumentException>(null, () => pen.Color);
System\Drawing\SystemPensTest.cs (1)
54Assert.Equal(expectedColor, pen.Color);