System\Drawing\TextureBrushTests.cs (4)
200using TextureBrush brush = new(image, rectangle, attributes);
246AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty, null));
262AssertExtensions.Throws<ArgumentException>(null, () => new TextureBrush(image, Rectangle.Empty, null));
295Assert.Throws<OutOfMemoryException>(() => new TextureBrush(image, rectangle, null));