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