107 references to new
System.Drawing.Common.Tests (90)
mono\System.Drawing\GraphicsTests.cs (2)
105
using Region r =
new
();
336
Region r =
new
();
System\Drawing\RegionTests.cs (88)
36
Region region =
new
();
44
using Region region =
new
();
82
yield return new object[] { new
Region
() };
127
using Region region =
new
();
139
using Region region =
new
();
157
using Region region =
new
();
322
new
Region
(),
329
new
Region
(),
371
using Region region =
new
();
390
using Region other =
new
();
405
using Region region =
new
();
412
AssertExtensions.Throws<ArgumentException>(null, () => new
Region
().Complement(CreateDisposedRegion()));
418
using Region region =
new
();
499
using Region region =
new
();
508
using Region region =
new
();
518
using Region other =
new
();
529
Region emptyRegion =
new
();
534
Region createdRegion =
new
();
536
yield return new object[] { new
Region
(), new
Region
(), true };
537
yield return new object[] { new
Region
(), Empty(), false };
538
yield return new object[] { new
Region
(), new Region(new Rectangle(1, 2, 3, 4)), false };
591
using Region region =
new
();
598
using Region region =
new
();
605
using Region region =
new
();
606
using Region other =
new
();
618
AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.Equals(new
Region
(), s_graphic));
619
AssertExtensions.Throws<ArgumentException>(null, () => new
Region
().Equals(disposedRegion, s_graphic));
640
new
Region
(),
653
new
Region
(),
803
using Region other =
new
();
812
using Region region =
new
();
819
AssertExtensions.Throws<ArgumentException>(null, () => new
Region
().Exclude(CreateDisposedRegion()));
825
using Region region =
new
();
882
using Region region =
new
();
891
using Region region =
new
();
901
using Region other =
new
();
948
using Region region =
new
();
960
using Region region =
new
();
973
using Region region =
new
();
980
using Region region =
new
();
987
using Region region =
new
();
1022
using Region region =
new
();
1036
using Region region =
new
();
1045
using Region clipRegion =
new
();
1082
new
Region
(),
1089
new
Region
(),
1136
using Region infiniteRegion =
new
();
1145
using Region region =
new
();
1152
AssertExtensions.Throws<ArgumentException>(null, () => new
Region
().Intersect(CreateDisposedRegion()));
1158
using Region region =
new
();
1181
using Region region =
new
();
1209
using Region region =
new
();
1239
using Region region =
new
();
1248
using Region region =
new
();
1258
using Region other =
new
();
1268
using Region region =
new
();
1281
using Region region =
new
();
1288
using Region region =
new
();
1303
Region infiniteExclude =
new
();
1308
yield return new object[] { new
Region
(), Rectangle.Empty, false };
1355
Region infiniteExclude =
new
();
1360
yield return new object[] { new
Region
(), Point.Empty, true };
1523
new
Region
(),
1530
new
Region
(),
1697
using Region other =
new
();
1707
using Region region =
new
();
1714
using Region region =
new
();
1721
using Region region =
new
();
1778
using Region region =
new
();
1787
using Region region =
new
();
1797
using Region other =
new
();
1833
using Region region =
new
();
1848
using Region region =
new
();
1862
using Region region =
new
();
1875
using Region region =
new
();
1901
using Region region =
new
();
1924
using Region region =
new
();
1936
using Region region =
new
();
1996
new
Region
(),
2009
new
Region
(),
2049
using Region other =
new
();
2065
using Region region =
new
();
2072
using Region region =
new
();
2079
using Region region =
new
();
2136
using Region region =
new
();
2145
using Region region =
new
();
2155
using Region other =
new
();
System.Windows.Forms.Tests (17)
System\Windows\Forms\ControlTests.Handlers.cs (2)
2182
yield return new object[] { testData, new
Region
() };
2334
yield return new object[] { testData, new
Region
() };
System\Windows\Forms\ControlTests.Methods.cs (7)
450
yield return new object[] { new
Region
() };
637
yield return new object[] { new
Region
() };
859
yield return new object[] { new
Region
() };
3514
yield return new object[] { opaque, new
Region
() };
3546
yield return new object[] { opaque, new
Region
(), new Rectangle(-4194304, -4194304, 8388608, 8388608) };
3653
yield return new object[] { opaque, new
Region
(), invalidateChildren };
3688
yield return new object[] { opaque, new
Region
(), invalidateChildren, new Rectangle(-4194304, -4194304, 8388608, 8388608) };
System\Windows\Forms\ControlTests.Properties.cs (5)
9870
yield return new object[] { new
Region
() };
9895
using Region oldValue =
new
();
9947
using Region oldValue =
new
();
9993
using Region region1 =
new
();
10004
using Region region2 =
new
();
System\Windows\Forms\ToolStripDropDownTests.cs (3)
2231
yield return new object[] { new
Region
() };
2295
using Region region1 =
new
();
2306
using Region region2 =
new
();