System\Drawing\Drawing2D\MatrixTests.cs (5)
119using Matrix matrix = new(rect, plgpnts.Select(p => (PointF)p).ToArray());
130AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default(RectangleF), null));
140AssertExtensions.Throws<ArgumentException>(null, () => new Matrix(default, new PointF[length]));
148Assert.Throws<OutOfMemoryException>(() => new Matrix(new RectangleF(1, 1, 0, 1), new PointF[3]));
155Assert.Throws<OutOfMemoryException>(() => new Matrix(new RectangleF(1, 1, 1, 0), new PointF[3]));