16 references to Throws
System.Drawing.Common.Tests (16)
System\Drawing\Drawing2D\GraphicsPathTests.cs (2)
323AssertExtensions.Throws<ArgumentException>("points", null, () => new GraphicsPath().AddLines(Array.Empty<Point>())); 324AssertExtensions.Throws<ArgumentException>("points", null, () => new GraphicsPath().AddLines(Array.Empty<PointF>()));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (6)
903AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetSigmaBellShape(focus)); 904AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetSigmaBellShape(focus, 1)); 915AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetSigmaBellShape(0.1f, scale)); 963AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetBlendTriangularShape(focus)); 964AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetBlendTriangularShape(focus, 1)); 975AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetBlendTriangularShape(0.1f, scale));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (6)
428AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetSigmaBellShape(focus)); 429AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetSigmaBellShape(focus, 1f)); 438AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetSigmaBellShape(1f, scale)); 512AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetBlendTriangularShape(focus)); 513AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetBlendTriangularShape(focus, 1f)); 522AssertExtensions.Throws<ArgumentException>(null, null, () => brush.SetBlendTriangularShape(1f, scale));
System\Drawing\IconTests.cs (1)
463AssertExtensions.Throws<ArgumentNullException>("outputStream", "dataStream", () => icon.Save(null));
System\Drawing\Text\PrivateFontCollectionTests.cs (1)
93AssertExtensions.Throws<ArgumentNullException>("filename", "path", () => fontCollection.AddFontFile(null));