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