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