20 references to new
System.Drawing.Common.Tests (20)
mono\System.Drawing\BitmapTests.cs (1)
72
BitmapData bd =
new
();
System\Drawing\BitmapTests.cs (11)
1114
BitmapData bitmapData =
new
();
1135
BitmapData bitmapData =
new
();
1146
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, PixelFormat.Format16bppGrayScale, new
BitmapData
()));
1149
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadWrite, PixelFormat.Format16bppGrayScale, new
BitmapData
()));
1164
BitmapData bitmapData =
new
();
1176
BitmapData bitmapData =
new
();
1188
Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(0, 0, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new
BitmapData
()));
1191
Assert.Throws<InvalidOperationException>(() => bitmap.LockBits(new Rectangle(1, 1, 1, 1), ImageLockMode.ReadOnly, bitmap.PixelFormat, new
BitmapData
()));
1241
Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new
BitmapData
()));
1251
Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new
BitmapData
()));
1260
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
();