44 references to new
System.Drawing.Common.Tests (17)
mono\System.Imaging\MetafileTest.cs (3)
46
using Metafile mf =
new
(filename);
94
using Metafile mf =
new
(Helpers.GetTestBitmapPath(WmfPlaceable));
161
using Metafile mf =
new
(Helpers.GetTestBitmapPath(Emf));
System\Drawing\GraphicsTests.cs (1)
285
using Metafile image =
new
(Helpers.GetTestBitmapPath("telescope_01.wmf"));
System\Drawing\Imaging\MetafileTests.cs (12)
46
using Metafile metafile =
new
(GetPath(WmfFile));
53
using Metafile metafile =
new
(GetPath(WmfFile));
60
Assert.Throws<ExternalException>(() => new
Metafile
(GetPath(BmpFile)));
66
AssertExtensions.Throws<ArgumentNullException>("path", () => new
Metafile
((string)null));
72
Assert.Throws<ExternalException>(() => new
Metafile
("fileNotExist"));
87
AssertExtensions.Throws<ArgumentException>("path", null, () => new
Metafile
(path));
846
using Metafile metafile =
new
(GetPath(WmfFile));
888
using Metafile metafile =
new
(GetPath(WmfFile));
898
Metafile metafile =
new
(GetPath(WmfFile));
907
using Metafile metafile =
new
(GetPath(WmfFile));
914
Metafile metafile =
new
(GetPath(WmfFile));
923
Metafile metafile =
new
(GetPath(WmfFile));
System\Drawing\TextureBrushTests.cs (1)
14
yield return new object[] { new
Metafile
(Helpers.GetTestBitmapPath("telescope_01.wmf")), PixelFormat.Format32bppArgb, new Size(490, 654) };
System.Windows.Forms.Tests (27)
System\Windows\Forms\AxHostTests.cs (4)
1632
Metafile original =
new
("bitmaps/milkmateya01.emf");
1654
Metafile original =
new
("bitmaps/telescope_01.wmf");
1697
Metafile original =
new
("bitmaps/milkmateya01.emf");
1722
Metafile original =
new
("bitmaps/telescope_01.wmf");
System\Windows\Forms\ClipboardTests.cs (4)
379
using Metafile metafile =
new
("bitmaps/telescope_01.wmf");
380
using Metafile enhancedMetafile =
new
("bitmaps/milkmateya01.emf");
447
using Metafile metafile =
new
("bitmaps/telescope_01.wmf");
464
using Metafile metafile =
new
("bitmaps/milkmateya01.emf");
System\Windows\Forms\ControlPaintTests.cs (7)
1316
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf"), -10, -20, Color.Red };
1317
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf"), 0, 0, Color.Red };
1318
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf"), 1, 2, Color.Red };
1319
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf"), 0, 0, Color.Black };
1320
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf"), 0, 0, Color.White };
1321
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf"), 0, 0, Color.Transparent };
1322
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf"), 0, 0, Color.Empty };
System\Windows\Forms\DataObjectTests.cs (1)
1568
using var metafile = new Drawing.Imaging.
Metafile
("bitmaps/milkmateya01.emf");
System\Windows\Forms\ImageList.ImageCollectionTests.cs (11)
339
using Metafile value =
new
("bitmaps/telescope_01.wmf");
806
using Metafile value =
new
("bitmaps/telescope_01.wmf");
883
using Metafile value =
new
("bitmaps/telescope_01.wmf");
1058
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf") };
1272
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf") };
1288
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf") };
1723
using Metafile value =
new
("bitmaps/telescope_01.wmf");
1730
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf") };
1761
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf") };
1796
yield return new object[] { index, new
Metafile
("bitmaps/telescope_01.wmf") };
1813
yield return new object[] { new
Metafile
("bitmaps/telescope_01.wmf") };