188 references to new
System.Drawing.Common.Tests (183)
mono\System.Drawing\GraphicsTests.cs (8)
153
rects = g.Clip.GetRegionScans(new
Matrix
());
180
_rects = g.Clip.GetRegionScans(new
Matrix
());
207
_rects = g.Clip.GetRegionScans(new
Matrix
());
225
_rects = g.Clip.GetRegionScans(new
Matrix
());
244
rects = g.Clip.GetRegionScans(new
Matrix
());
256
rects = g.Clip.GetRegionScans(new
Matrix
());
268
rects = g.Clip.GetRegionScans(new
Matrix
());
471
g.Transform = new
Matrix
();
System\Drawing\Drawing2D\GraphicsPathTests.cs (9)
1126
using Matrix matrix =
new
();
1139
using Matrix matrix =
new
();
1295
using Matrix matrix =
new
();
1305
using Matrix matrix =
new
();
1685
AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new
Matrix
()));
1686
AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new
Matrix
(), 0.67f));
1705
using Matrix matrix =
new
();
1707
gp.Widen(pen, new
Matrix
());
1727
using Matrix matrix =
new
();
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (4)
596
AssertExtensions.Throws<ArgumentException>(null, () => brush.Transform = new
Matrix
());
705
Matrix matrix =
new
();
729
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new
Matrix
()));
730
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new
Matrix
(), MatrixOrder.Prepend));
System\Drawing\Drawing2D\MatrixTests.Core.cs (1)
29
using Matrix matrix =
new
();
System\Drawing\Drawing2D\MatrixTests.cs (41)
34
Matrix matrix =
new
();
42
using Matrix matrix =
new
();
175
yield return new object[] { new
Matrix
(), new Matrix(1, 0, 0, 1, 0, 0), true };
176
yield return new object[] { new
Matrix
(), new Matrix(123, 24, 82, 16, 47, 30), false };
177
yield return new object[] { new
Matrix
(), new Matrix(1.1f, 0.1f, -0.1f, 0.9f, 0, 0), false };
178
yield return new object[] { new
Matrix
(), new Matrix(1.01f, 0.01f, -0.01f, 0.99f, 0, 0), false };
179
yield return new object[] { new
Matrix
(), new Matrix(1.001f, 0.001f, -0.001f, 0.999f, 0, 0), false };
180
yield return new object[] { new
Matrix
(), new Matrix(1.0001f, 0.0001f, -0.0001f, 0.9999f, 0, 0), false };
181
yield return new object[] { new
Matrix
(), new Matrix(1.0009f, 0.0009f, -0.0009f, 0.99995f, 0, 0), false };
194
yield return new object[] { new
Matrix
(), null, false };
195
yield return new object[] { new
Matrix
(), new(), false };
216
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Equals(new
Matrix
()));
222
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
().Equals(CreateDisposedMatrix()));
235
yield return new object[] { new
Matrix
(), new float[] { 1, 0, 0, 1, 0, 0 } };
292
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } };
293
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Append, new float[] { 10, 20, 30, 40, 50, 60 } };
336
using Matrix matrix =
new
();
346
using Matrix matrix =
new
();
347
using Matrix other =
new
();
356
using Matrix other =
new
();
366
using Matrix matrix =
new
();
374
using Matrix matrix =
new
();
404
yield return new object[] { new
Matrix
(), 45, PointF.Empty, MatrixOrder.Prepend, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false };
405
yield return new object[] { new
Matrix
(), 45, PointF.Empty, MatrixOrder.Append, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false };
407
using (Matrix rotated45 =
new
())
414
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Prepend, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
415
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Append, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
417
using (Matrix rotated90 =
new
())
485
using Matrix matrix =
new
();
503
using Matrix matrix =
new
();
560
using Matrix matrix =
new
();
626
using Matrix matrix =
new
();
644
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 5, 10 } };
645
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 5, 10 } };
683
using Matrix matrix =
new
();
699
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
729
using Matrix matrix =
new
();
737
using Matrix matrix =
new
();
754
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
795
using Matrix matrix =
new
();
804
using Matrix matrix =
new
();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (2)
643
using Matrix matrix =
new
();
741
Matrix matrix =
new
();
System\Drawing\Graphics_GetContextTests.cs (5)
48
using Matrix initialTransform =
new
();
64
using Matrix initialTransform =
new
();
82
using Matrix initialTransform =
new
();
100
using Matrix initialTransform =
new
();
121
using Matrix initialTransform =
new
();
System\Drawing\GraphicsTests.Core.cs (1)
63
using (Matrix matrix =
new
())
System\Drawing\GraphicsTests.cs (9)
1070
using Matrix matrix =
new
();
1100
Matrix matrix =
new
();
1120
using Matrix matrix =
new
();
1137
using Matrix matrix =
new
();
1231
Matrix matrix =
new
();
1257
using Matrix matrix =
new
();
1266
using Matrix matrix =
new
();
1283
using Matrix matrix =
new
();
2817
Assert.Equal(new
Matrix
(), graphics.Transform);
System\Drawing\PenTests.cs (20)
757
yield return new object[] { new
Matrix
(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend };
758
yield return new object[] { new
Matrix
(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Append };
819
Matrix matrix =
new
();
836
using Matrix matrix =
new
();
847
using Matrix matrix =
new
();
861
using Matrix matrix =
new
();
874
using Matrix matrix =
new
();
883
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Prepend };
884
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Append };
931
using Matrix matrix =
new
();
941
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
942
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
991
using Matrix matrix =
new
();
1096
Matrix matrix =
new
();
1106
using Matrix matrix =
new
();
1116
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
1117
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
1166
using Matrix matrix =
new
();
1223
using (Matrix matrix =
new
())
1225
Assert.Equal(new
Matrix
(), pen.Transform);
System\Drawing\RegionTests.cs (57)
94
using Matrix matrix =
new
();
171
using Matrix matrix =
new
();
186
using Matrix matrix =
new
();
238
using Matrix matrix =
new
();
263
using (Matrix matrix =
new
())
347
using Matrix matrix =
new
();
357
using Matrix matrix =
new
();
372
using Matrix matrix =
new
();
389
using Matrix matrix =
new
();
433
using Matrix matrix =
new
();
449
using Matrix matrix =
new
();
467
using Matrix matrix =
new
();
481
using Matrix matrix =
new
();
783
using Matrix matrix =
new
();
793
using Matrix matrix =
new
();
804
using Matrix matrix =
new
();
840
using Matrix matrix =
new
();
856
using Matrix matrix =
new
();
874
using Matrix matrix =
new
();
1009
using Matrix matrix =
new
();
1011
using Matrix emptyMatrix =
new
();
1029
using Matrix matrix =
new
();
1037
Matrix matrix =
new
();
1046
using Matrix matrix =
new
();
1126
using Matrix matrix =
new
();
1135
using Matrix matrix =
new
();
1173
using Matrix matrix =
new
();
1182
using Matrix matrix =
new
();
1201
using Matrix matrix =
new
();
1210
using Matrix matrix =
new
();
1231
using Matrix matrix =
new
();
1447
using (Matrix matrix =
new
())
1688
using Matrix matrix =
new
();
1698
using Matrix matrix =
new
();
1736
using Matrix matrix =
new
();
1752
using Matrix matrix =
new
();
1770
using Matrix matrix =
new
();
1808
using Matrix matrix =
new
();
1817
using Matrix matrix =
new
();
1818
using Matrix emptyMatrix =
new
();
1834
using Matrix matrix =
new
();
1835
using Matrix emptyMatrix =
new
();
1849
using Matrix matrix =
new
();
1850
using Matrix emptyMatrix =
new
();
1864
using Matrix emptyMatrix =
new
();
1882
using Matrix matrix =
new
();
1893
using Matrix matrix =
new
();
1902
using Matrix matrix =
new
();
1916
using Matrix matrix =
new
();
1925
using Matrix matrix =
new
();
1937
using Matrix matrix =
new
();
1954
using Matrix matrix =
new
();
2040
using Matrix matrix =
new
();
2050
using Matrix matrix =
new
();
2094
using Matrix matrix =
new
();
2110
using Matrix matrix =
new
();
2128
using Matrix matrix =
new
();
System\Drawing\SystemPensTest.cs (1)
75
using (Matrix matrix =
new
())
System\Drawing\TextureBrushTests.cs (25)
24
using Matrix matrix =
new
();
65
using Matrix matrix =
new
();
92
using Matrix matrix =
new
();
113
using Matrix matrix =
new
();
146
using Matrix matrix =
new
();
167
using Matrix matrix =
new
();
201
using Matrix matrix =
new
();
223
using Matrix matrix =
new
();
333
yield return new object[] { new
Matrix
(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend };
334
yield return new object[] { new
Matrix
(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Append };
395
Matrix matrix =
new
();
412
using Matrix matrix =
new
();
423
using Matrix matrix =
new
();
437
using Matrix matrix =
new
();
458
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Prepend };
459
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Append };
510
using Matrix matrix =
new
();
520
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
521
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
574
using Matrix matrix =
new
();
605
Matrix matrix =
new
();
615
using Matrix matrix =
new
();
625
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
626
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
679
using Matrix matrix =
new
();
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
225
Matrix m =
new
();
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
22
Matrix transform =
new
();
105
Matrix transform =
new
();
System.Windows.Forms.Tests (2)
System\Windows\Forms\TextRendererTests.cs (2)
756
using Matrix matrix =
new
();
804
using Matrix matrix =
new
();