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));