5 references to new
System.Drawing.Common.Tests (5)
System\Drawing\Drawing2D\HatchBrushTests.cs (2)
18using HatchBrush brush = new(hatchStyle, foreColor); 52AssertExtensions.Throws<ArgumentException>("hatchstyle", null, () => new HatchBrush(hatchStyle, Color.Empty));
System\Drawing\GraphicsTests.cs (1)
862using HatchBrush brush = new(HatchStyle.Cross, red);
System\Drawing\PenTests.cs (2)
14yield return new object[] { new HatchBrush(HatchStyle.BackwardDiagonal, Color.Red), PenType.HatchFill }; 245using HatchBrush brush = new(HatchStyle.BackwardDiagonal, Color.Red);