System\Drawing\RegionTests.cs (20)
106using Region region = new(graphicsPath);
149using Region region = new(graphicsPath);
170using Region region = new(graphicsPath);
185using Region region = new(graphicsPath);
225using (Region region = new(path))
237using Region region = new(path);
245AssertExtensions.Throws<ArgumentNullException>("path", () => new Region((GraphicsPath)null));
254AssertExtensions.Throws<ArgumentException>(null, () => new Region(path));
569yield return new object[] { new Region(graphics1), new Region(graphics1), true };
570yield return new object[] { new Region(graphics1), new Region(graphics2), true };
571yield return new object[] { new Region(graphics1), new Region(graphics3), false };
572yield return new object[] { new Region(graphics1), new Region(graphics4), false };
573yield return new object[] { new Region(graphics1), new Region(graphics5), false };
574yield return new object[] { new Region(graphics1), new Region(graphics6), false };