System\Drawing\BitmapTests.cs (5)
223AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), width, 1));
238AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), 1, height));
321using Bitmap bitmap = new(image, width, height);
343AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, 1, 2));
353AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(image, 1, 1));