4 references to new
System.Drawing.Common.Tests (4)
System\Drawing\TextureBrushTests.cs (4)
112using TextureBrush brush = new(image, (RectangleF)rectangle); 243AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty)); 259AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, RectangleF.Empty)); 292Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, (RectangleF)rectangle));