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