4 references to new
System.Drawing.Common.Tests (4)
System\Drawing\TextureBrushTests.cs (4)
91using TextureBrush brush = new(image, rectangle); 244AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty)); 260AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, Rectangle.Empty)); 291Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, rectangle));