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)
598
AssertExtensions.Throws<ArgumentException>(null, () => brush.Transform = new
Matrix
());
707
Matrix matrix =
new
();
731
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new
Matrix
()));
732
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)
35
Matrix matrix =
new
();
43
using Matrix matrix =
new
();
176
yield return new object[] { new
Matrix
(), new Matrix(1, 0, 0, 1, 0, 0), true };
177
yield return new object[] { new
Matrix
(), new Matrix(123, 24, 82, 16, 47, 30), false };
178
yield return new object[] { new
Matrix
(), new Matrix(1.1f, 0.1f, -0.1f, 0.9f, 0, 0), false };
179
yield return new object[] { new
Matrix
(), new Matrix(1.01f, 0.01f, -0.01f, 0.99f, 0, 0), false };
180
yield return new object[] { new
Matrix
(), new Matrix(1.001f, 0.001f, -0.001f, 0.999f, 0, 0), false };
181
yield return new object[] { new
Matrix
(), new Matrix(1.0001f, 0.0001f, -0.0001f, 0.9999f, 0, 0), false };
182
yield return new object[] { new
Matrix
(), new Matrix(1.0009f, 0.0009f, -0.0009f, 0.99995f, 0, 0), false };
195
yield return new object[] { new
Matrix
(), null, false };
196
yield return new object[] { new
Matrix
(), new(), false };
217
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Equals(new
Matrix
()));
223
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
().Equals(CreateDisposedMatrix()));
236
yield return new object[] { new
Matrix
(), new float[] { 1, 0, 0, 1, 0, 0 } };
293
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } };
294
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Append, new float[] { 10, 20, 30, 40, 50, 60 } };
337
using Matrix matrix =
new
();
347
using Matrix matrix =
new
();
348
using Matrix other =
new
();
357
using Matrix other =
new
();
367
using Matrix matrix =
new
();
375
using Matrix matrix =
new
();
405
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 };
406
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 };
408
using (Matrix rotated45 =
new
())
415
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Prepend, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
416
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Append, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
418
using (Matrix rotated90 =
new
())
486
using Matrix matrix =
new
();
504
using Matrix matrix =
new
();
561
using Matrix matrix =
new
();
627
using Matrix matrix =
new
();
645
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 5, 10 } };
646
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 5, 10 } };
684
using Matrix matrix =
new
();
700
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
730
using Matrix matrix =
new
();
738
using Matrix matrix =
new
();
755
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
796
using Matrix matrix =
new
();
805
using Matrix matrix =
new
();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (2)
645
using Matrix matrix =
new
();
743
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)
1071
using Matrix matrix =
new
();
1101
Matrix matrix =
new
();
1121
using Matrix matrix =
new
();
1138
using Matrix matrix =
new
();
1232
Matrix matrix =
new
();
1258
using Matrix matrix =
new
();
1267
using Matrix matrix =
new
();
1284
using Matrix matrix =
new
();
2818
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)
25
using Matrix matrix =
new
();
66
using Matrix matrix =
new
();
93
using Matrix matrix =
new
();
114
using Matrix matrix =
new
();
147
using Matrix matrix =
new
();
168
using Matrix matrix =
new
();
202
using Matrix matrix =
new
();
224
using Matrix matrix =
new
();
334
yield return new object[] { new
Matrix
(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend };
335
yield return new object[] { new
Matrix
(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Append };
396
Matrix matrix =
new
();
413
using Matrix matrix =
new
();
424
using Matrix matrix =
new
();
438
using Matrix matrix =
new
();
459
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Prepend };
460
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Append };
511
using Matrix matrix =
new
();
521
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
522
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
575
using Matrix matrix =
new
();
606
Matrix matrix =
new
();
616
using Matrix matrix =
new
();
626
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
627
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
680
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)
758
using Matrix matrix =
new
();
806
using Matrix matrix =
new
();