6 writes to Brush
System.Drawing.Common.Tests (6)
System\Drawing\PenTests.cs (5)
154
pen.
Brush
= brush;
163
AssertExtensions.Throws<ArgumentException>(null, () => pen.
Brush
= new SubBrush());
176
AssertExtensions.Throws<ArgumentNullException>("value", () => pen.
Brush
= null);
185
AssertExtensions.Throws<ArgumentException>(null, () => pen.
Brush
= brush);
196
AssertExtensions.Throws<ArgumentException>(null, () => pen.
Brush
= brush);
System\Drawing\SystemPensTest.cs (1)
62
AssertExtensions.Throws<ArgumentException>(null, () => pen.
Brush
= null);
6 references to Brush
System.Drawing.Common.Tests (6)
System\Drawing\PenTests.cs (6)
71
Assert.Equal(pen.Color, Assert.IsType<SolidBrush>(pen.
Brush
).Color);
155
Assert.IsType<T>(pen.
Brush
);
195
AssertExtensions.Throws<ArgumentException>(null, () => pen.
Brush
);
215
Assert.Equal(((SolidBrush)pen.
Brush
).Color, ((SolidBrush)clone.
Brush
).Color);
1204
Assert.IsType<T>(pen.
Brush
);