20 references to new
System.Drawing.Common.Tests (20)
mono\System.Drawing\BitmapTests.cs (1)
72BitmapData bd = new();
System\Drawing\BitmapTests.cs (11)
1115BitmapData bitmapData = new(); 1136BitmapData bitmapData = new(); 1147AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format16bppGrayScale, new BitmapData())); 1150AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format16bppGrayScale, new BitmapData())); 1165BitmapData bitmapData = new(); 1177BitmapData bitmapData = new(); 1189Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new BitmapData())); 1192Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new BitmapData())); 1242Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new BitmapData())); 1252Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new BitmapData())); 1261AssertExtensions.Throws<ArgumentException>(null, () => bitmap.UnlockBits(new BitmapData()));
System\Drawing\Imaging\BitmapDataTests.cs (8)
11BitmapData bd = new(); 26BitmapData bd = new() 39BitmapData bd = new() 52BitmapData bd = new() 65BitmapData bd = new() 78BitmapData bd = new() 110BitmapData bd = new() 120BitmapData bd = new();