31 references to Clone
System.Drawing.Common.Tests (31)
System\Drawing\Drawing2D\MatrixTests.cs (23)
162
using Matrix clone = Assert.IsType<Matrix>(matrix.
Clone
());
170
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().
Clone
());
185
yield return new object[] { matrix.
Clone
(), matrix.
Clone
(), true };
186
yield return new object[] { matrix.
Clone
(), new Matrix(1, 2, 3, 4, 5, 6), true };
187
yield return new object[] { matrix.
Clone
(), new Matrix(2, 2, 3, 4, 5, 6), false };
188
yield return new object[] { matrix.
Clone
(), new Matrix(1, 3, 3, 4, 5, 6), false };
189
yield return new object[] { matrix.
Clone
(), new Matrix(1, 2, 4, 4, 5, 6), false };
190
yield return new object[] { matrix.
Clone
(), new Matrix(1, 2, 3, 5, 5, 6), false };
191
yield return new object[] { matrix.
Clone
(), new Matrix(1, 2, 3, 4, 6, 6), false };
192
yield return new object[] { matrix.
Clone
(), new Matrix(1, 2, 3, 4, 5, 7), false };
323
using Matrix clone1 = matrix.
Clone
();
410
yield return new object[] { rotated45.
Clone
(), 135, PointF.Empty, MatrixOrder.Prepend, new float[] { -1, 0, 0, -1, 0, 0 }, null, false };
411
yield return new object[] { rotated45.
Clone
(), 135, PointF.Empty, MatrixOrder.Append, new float[] { -1, 0, 0, -1, 0, 0 }, null, false };
420
yield return new object[] { rotated90.
Clone
(), 270, PointF.Empty, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 0, 0 }, null, true };
421
yield return new object[] { rotated90.
Clone
(), 270, PointF.Empty, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 0, 0 }, null, true };
447
using Matrix clone1 = matrix.
Clone
();
453
using Matrix clone2 = matrix.
Clone
();
461
using Matrix clone3 = matrix.
Clone
();
467
using Matrix clone4 = matrix.
Clone
();
545
using Matrix clone = matrix.
Clone
();
611
using Matrix clone = matrix.
Clone
();
668
using Matrix clone = matrix.
Clone
();
System\Drawing\PenTests.cs (4)
771
using Matrix expected = originalTransform.
Clone
();
900
using (Matrix expected = originalTransform.
Clone
())
960
using (Matrix expected = originalTransform.
Clone
())
1135
using (Matrix expected = originalTransform.
Clone
())
System\Drawing\TextureBrushTests.cs (4)
347
using var expected = originalTransform.
Clone
();
476
using Matrix expected = originalTransform.
Clone
();
540
using Matrix expected = originalTransform.
Clone
();
645
using Matrix expected = originalTransform.
Clone
();