127 references to new
System.Drawing.Common.Tests (115)
mono\System.Drawing.Imaging\BmpCodecTests.cs (11)
44
using Bitmap bmp =
new
(sInFile);
65
using Bitmap bmp =
new
(sInFile);
110
using Bitmap bmp =
new
(sInFile);
131
using Bitmap bmp =
new
(sInFile);
176
using Bitmap bmp =
new
(sInFile);
197
using Bitmap bmp =
new
(sInFile);
240
using Bitmap bmp =
new
(sInFile);
363
using Bitmap bmp =
new
(sInFile);
383
using Bitmap bmp =
new
(sInFile);
443
using Bitmap bmpLoad =
new
(sOutFile);
494
using Bitmap bmp =
new
(sInFile);
mono\System.Drawing.Imaging\GifCodecTests.cs (5)
41
using Bitmap bmp =
new
(filename);
72
using Bitmap bmp =
new
(filename);
108
using Bitmap bmp =
new
(sInFile);
167
using Bitmap bmp =
new
(sInFile);
197
using Bitmap bmpLoad =
new
(sOutFile);
mono\System.Drawing.Imaging\IconCodecTests.cs (22)
68
using Bitmap bmp =
new
(sInFile);
99
using Bitmap bmp =
new
(sInFile);
107
using Bitmap bmp =
new
(sInFile);
131
using Bitmap bmp =
new
(sInFile);
217
using Bitmap bmp =
new
(sInFile);
247
using Bitmap bmp =
new
(sInFile);
255
using Bitmap bmp =
new
(sInFile);
327
using Bitmap bmp =
new
(sInFile);
422
using Bitmap bmp =
new
(sInFile);
452
using Bitmap bmp =
new
(sInFile);
460
using Bitmap bmp =
new
(sInFile);
545
using Bitmap bmp =
new
(sInFile);
644
using Bitmap bmp =
new
(sInFile);
674
using Bitmap bmp =
new
(sInFile);
682
using Bitmap bmp =
new
(sInFile);
749
using Bitmap bmp =
new
(sInFile);
902
using Bitmap bmp =
new
(sInFile);
932
using Bitmap bmp =
new
(sInFile);
940
using Bitmap bmp =
new
(sInFile);
1524
using Bitmap bmp =
new
(sInFile);
1835
using Bitmap bmp =
new
(sInFile);
1883
using Bitmap bmpLoad =
new
(sOutFile);
mono\System.Drawing.Imaging\JpegCodecTests.cs (7)
43
using Bitmap bmp =
new
(sInFile);
87
using Bitmap bmp =
new
(sInFile);
111
using Bitmap bmp =
new
(sInFile);
170
using Bitmap bmp =
new
(sInFile);
202
using Bitmap bmp =
new
(sInFile);
226
using Bitmap bmp =
new
(sInFile);
362
using Bitmap bmpLoad =
new
(sOutFile);
mono\System.Drawing.Imaging\PngCodecTests.cs (10)
43
using Bitmap bmp =
new
(sInFile);
70
using Bitmap bmp =
new
(sInFile);
144
using Bitmap bmp =
new
(sInFile);
245
using Bitmap bmp =
new
(sInFile);
272
using Bitmap bmp =
new
(sInFile);
296
using Bitmap bmp =
new
(sInFile);
353
using Bitmap bmp =
new
(sInFile);
394
using Bitmap bmp =
new
(sInFile);
469
using Bitmap bmp =
new
(sInFile);
583
using Bitmap bmpLoad =
new
(sOutFile);
mono\System.Drawing.Imaging\TiffCodecTests.cs (5)
43
using Bitmap bmp =
new
(sInFile);
65
using Bitmap bmp =
new
(sInFile);
74
using Bitmap bmp =
new
(sInFile);
118
using Bitmap bmp =
new
(sInFile);
254
using Bitmap bmpLoad =
new
(sOutFile);
mono\System.Drawing\BitmapTests.cs (8)
320
using Bitmap bmp =
new
(sInFile);
335
using Bitmap bmp =
new
(sInFile);
346
using Bitmap bmp =
new
(sInFile);
355
public void FileDoesNotExists() => Assert.Throws<ArgumentException>(() => new
Bitmap
("FileDoesNotExists.jpg"));
444
using Bitmap bmp =
new
(sInFile);
786
using (Bitmap other =
new
(filename))
1263
using (Bitmap bitmap =
new
(sInFile))
1289
using (Bitmap bitmap =
new
(sInFile))
System\Drawing\BitmapTests.cs (7)
45
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath(filename));
69
AssertExtensions.Throws<ArgumentNullException>("path", () => new
Bitmap
((string)null));
79
AssertExtensions.Throws<ArgumentException>(paramName, null, () => new
Bitmap
(filename));
278
yield return new object[] { new
Bitmap
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")), 16, 16 };
279
yield return new object[] { new
Bitmap
(Helpers.GetTestBitmapPath("16x16_nonindexed_24bit.png")), 32, 48 };
303
using Bitmap image =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
908
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
System\Drawing\ImageAnimator.ManualTests.cs (1)
63
bitmaps[imageName] = new
Bitmap
(Helpers.GetTestBitmapPath(imageName));
System\Drawing\ImageAnimatorTests.cs (20)
20
using Bitmap image =
new
(Helpers.GetTestBitmapPath(imageName));
27
Bitmap image =
new
(Helpers.GetTestBitmapPath("1bit.png"));
34
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
37
Bitmap image =
new
(Helpers.GetTestBitmapPath("1bit.png"));
44
Bitmap image =
new
(Helpers.GetTestBitmapPath("1bit.png"));
51
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
54
Bitmap image =
new
(Helpers.GetTestBitmapPath("1bit.png"));
61
Bitmap image =
new
(Helpers.GetTestBitmapPath("1bit.png"));
68
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
71
Bitmap image =
new
(Helpers.GetTestBitmapPath("1bit.png"));
84
using Bitmap image =
new
(Helpers.GetTestBitmapPath(imageName));
91
Bitmap image =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
98
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
101
Bitmap image =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-infinite.gif"));
108
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
115
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
123
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
131
Bitmap image =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
138
Bitmap animatedImage =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif"));
141
Bitmap image =
new
(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-infinite.gif"));
System\Drawing\ImageTests.cs (14)
23
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
39
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
81
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("almogaver1bit.bmp"));
97
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
121
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("almogaver1bit.bmp"));
128
using Bitmap source =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
156
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
189
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("almogaver1bit.bmp"));
199
using Bitmap source =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
217
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
227
using Bitmap source =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
286
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
428
using Bitmap source =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
429
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("almogaver1bit.bmp"));
System\Drawing\Imaging\PropertyItemTests.cs (5)
16
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
28
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
40
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
57
using Bitmap bitmap =
new
(Helpers.GetTestBitmapPath("nature24bits.jpg"));
74
using Bitmap image =
new
(Helpers.GetTestBitmapPath("16x16_nonindexed_24bit.png"));
System.Windows.Forms.Tests (1)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (1)
251
yield return new object[] { transparentColor, new
Bitmap
("bitmaps/10x16_one_entry_32bit.ico") };
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (3)
21
private readonly Bitmap _dragImage =
new
("./Resources/move.bmp");
890
private readonly Bitmap _dragImage =
new
("./Resources/image.png");
891
private readonly Bitmap _dragAcceptBmp =
new
("./Resources/DragAccept.bmp");
WinFormsControlsTest (8)
DragDrop.cs (8)
17
private readonly Bitmap _dragAcceptBmp =
new
(@"Data\DragDrop\DragAccept.bmp");
18
private readonly Bitmap _nyanCatAscii301Bmp =
new
(@"Data\DragDrop\NyanCatAscii_301.bmp");
19
private readonly Bitmap _nyanCatBmp =
new
(@"Data\DragDrop\NyanCat1.bmp");
20
private readonly Bitmap _toolStripAsciiCatBmp =
new
(@"Data\DragDrop\ToolStripAsciiCat.bmp");
21
private readonly Bitmap _toolStripDragAcceptBmp =
new
(@"Data\DragDrop\ToolStripDragAccept.bmp");
22
private readonly Bitmap _toolStripNyanCatBmp =
new
(@"Data\DragDrop\ToolStripNyanCat.bmp");
366
LoadCat(pictureBox, new
Bitmap
(bitmapFiles[0]));
374
LoadCat(_pictureBoxList[i], new
Bitmap
(bitmapFiles[0]));