31 references to Clone
System.Drawing.Common.Tests (31)
System\Drawing\Drawing2D\MatrixTests.cs (23)
163using Matrix clone = Assert.IsType<Matrix>(matrix.Clone()); 171AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Clone()); 186yield return new object[] { matrix.Clone(), matrix.Clone(), true }; 187yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 4, 5, 6), true }; 188yield return new object[] { matrix.Clone(), new Matrix(2, 2, 3, 4, 5, 6), false }; 189yield return new object[] { matrix.Clone(), new Matrix(1, 3, 3, 4, 5, 6), false }; 190yield return new object[] { matrix.Clone(), new Matrix(1, 2, 4, 4, 5, 6), false }; 191yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 5, 5, 6), false }; 192yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 4, 6, 6), false }; 193yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 4, 5, 7), false }; 324using Matrix clone1 = matrix.Clone(); 411yield return new object[] { rotated45.Clone(), 135, PointF.Empty, MatrixOrder.Prepend, new float[] { -1, 0, 0, -1, 0, 0 }, null, false }; 412yield return new object[] { rotated45.Clone(), 135, PointF.Empty, MatrixOrder.Append, new float[] { -1, 0, 0, -1, 0, 0 }, null, false }; 421yield return new object[] { rotated90.Clone(), 270, PointF.Empty, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 0, 0 }, null, true }; 422yield return new object[] { rotated90.Clone(), 270, PointF.Empty, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 0, 0 }, null, true }; 448using Matrix clone1 = matrix.Clone(); 454using Matrix clone2 = matrix.Clone(); 462using Matrix clone3 = matrix.Clone(); 468using Matrix clone4 = matrix.Clone(); 546using Matrix clone = matrix.Clone(); 612using Matrix clone = matrix.Clone(); 669using 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)
348using var expected = originalTransform.Clone(); 477using Matrix expected = originalTransform.Clone(); 541using Matrix expected = originalTransform.Clone(); 646using Matrix expected = originalTransform.Clone();