4 references to new
System.Drawing.Common.Tests (4)
System\Drawing\TextureBrushTests.cs (4)
201using TextureBrush brush = new(image, rectangle, attributes); 247AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty, null)); 263AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, Rectangle.Empty, null)); 296Assert.Throws<ExternalException>(() => new TextureBrush(image, rectangle, null));