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