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