7 references to new
System.Drawing.Common.Tests (7)
System\Drawing\RegionTests.cs (7)
93using Region otherRegion = new(region.GetRegionData()); 114using Region other = new(region.GetRegionData()); 121AssertExtensions.Throws<ArgumentNullException>("rgnData", () => new Region((RegionData)null)); 130AssertExtensions.Throws<ArgumentException>(null, () => new Region(regionData)); 142Assert.Throws<ExternalException>(() => new Region(regionData)); 151Assert.Throws<ExternalException>(() => new Region(regionData)); 160Assert.Throws<NullReferenceException>(() => new Region(regionData));