23 references to CreateDisposedRegion
System.Drawing.Common.Tests (23)
System\Drawing\RegionTests.cs (23)
275AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().Clone());
412AssertExtensions.Throws<ArgumentException>(null, () => new Region().Complement(CreateDisposedRegion()));
515Region disposedRegion = CreateDisposedRegion();
616Region disposedRegion = CreateDisposedRegion();
819AssertExtensions.Throws<ArgumentException>(null, () => new Region().Exclude(CreateDisposedRegion()));
898Region disposedRegion = CreateDisposedRegion();
967AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().GetHrgn(s_graphic));
997AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().GetBounds(s_graphic));
1003AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().GetRegionData());
1030AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().GetRegionScans(matrix));
1152AssertExtensions.Throws<ArgumentException>(null, () => new Region().Intersect(CreateDisposedRegion()));
1255Region disposedRegion = CreateDisposedRegion();
1275AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().IsEmpty(s_graphic));
1298AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().IsInfinite(s_graphic));
1413Region disposedRegion = CreateDisposedRegion();
1460AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().MakeEmpty());
1483AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().MakeInfinite());
1715AssertExtensions.Throws<ArgumentException>(null, () => region.Union(CreateDisposedRegion()));
1794Region disposedRegion = CreateDisposedRegion();
1883AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedRegion().Transform(matrix));
1965Region disposedRegion = CreateDisposedRegion();
2073AssertExtensions.Throws<ArgumentException>(null, () => region.Xor(CreateDisposedRegion()));
2152Region disposedRegion = CreateDisposedRegion();