283 references to Helpers
System.Drawing.Common.Tests (283)
mono\System.Drawing.Imaging\BmpCodecTests.cs (10)
43
string sInFile =
Helpers
.GetTestBitmapPath("almogaver1bit.bmp");
64
string sInFile =
Helpers
.GetTestBitmapPath("almogaver1bit.bmp");
109
string sInFile =
Helpers
.GetTestBitmapPath("almogaver8bits.bmp");
130
string sInFile =
Helpers
.GetTestBitmapPath("almogaver8bits.bmp");
175
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
196
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
239
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
362
string sInFile =
Helpers
.GetTestBitmapPath("almogaver32bits.bmp");
382
string sInFile =
Helpers
.GetTestBitmapPath("almogaver32bits.bmp");
493
string sInFile =
Helpers
.GetTestBitmapPath("non-inverted.bmp");
mono\System.Drawing.Imaging\GifCodecTests.cs (6)
61
Bitmap8bitsFeatures(
Helpers
.GetTestBitmapPath("nature24bits.gif"));
67
Bitmap8bitsFeatures(
Helpers
.GetTestBitmapPath("nature24bits87.gif"));
95
Bitmap8bitsPixels(
Helpers
.GetTestBitmapPath("nature24bits.gif"));
101
Bitmap8bitsPixels(
Helpers
.GetTestBitmapPath("nature24bits87.gif"));
107
string sInFile =
Helpers
.GetTestBitmapPath("nature24bits.gif");
166
string sInFile =
Helpers
.GetTestBitmapPath("81773-interlaced.gif");
mono\System.Drawing.Imaging\IconCodecTests.cs (23)
41
string sInFile =
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico");
58
string sInFile =
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico");
67
string sInFile =
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico");
98
string sInFile =
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico");
106
string sInFile =
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico");
130
string sInFile =
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico");
216
string sInFile =
Helpers
.GetTestBitmapPath("VisualPng.ico");
246
string sInFile =
Helpers
.GetTestBitmapPath("VisualPng.ico");
254
string sInFile =
Helpers
.GetTestBitmapPath("VisualPng.ico");
326
string sInFile =
Helpers
.GetTestBitmapPath("VisualPng.ico");
421
string sInFile =
Helpers
.GetTestBitmapPath("48x48_one_entry_1bit.ico");
451
string sInFile =
Helpers
.GetTestBitmapPath("48x48_one_entry_1bit.ico");
459
string sInFile =
Helpers
.GetTestBitmapPath("48x48_one_entry_1bit.ico");
544
string sInFile =
Helpers
.GetTestBitmapPath("48x48_one_entry_1bit.ico");
643
string sInFile =
Helpers
.GetTestBitmapPath("64x64_one_entry_8bit.ico");
673
string sInFile =
Helpers
.GetTestBitmapPath("64x64_one_entry_8bit.ico");
681
string sInFile =
Helpers
.GetTestBitmapPath("64x64_one_entry_8bit.ico");
748
string sInFile =
Helpers
.GetTestBitmapPath("64x64_one_entry_8bit.ico");
901
string sInFile =
Helpers
.GetTestBitmapPath("96x96_one_entry_8bit.ico");
931
string sInFile =
Helpers
.GetTestBitmapPath("96x96_one_entry_8bit.ico");
939
string sInFile =
Helpers
.GetTestBitmapPath("96x96_one_entry_8bit.ico");
1523
string sInFile =
Helpers
.GetTestBitmapPath("96x96_one_entry_8bit.ico");
1834
string sInFile =
Helpers
.GetTestBitmapPath("48x48_multiple_entries_32bit.ico");
mono\System.Drawing.Imaging\JpegCodecTests.cs (6)
44
string sInFile =
Helpers
.GetTestBitmapPath("nature-greyscale.jpg");
88
string sInFile =
Helpers
.GetTestBitmapPath("nature-greyscale.jpg");
112
string sInFile =
Helpers
.GetTestBitmapPath("nature-greyscale.jpg");
171
string sInFile =
Helpers
.GetTestBitmapPath("nature24bits.jpg");
203
string sInFile =
Helpers
.GetTestBitmapPath("nature24bits.jpg");
227
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
mono\System.Drawing.Imaging\PngCodecTests.cs (9)
42
string sInFile =
Helpers
.GetTestBitmapPath("1bit.png");
69
string sInFile =
Helpers
.GetTestBitmapPath("1bit.png");
143
string sInFile =
Helpers
.GetTestBitmapPath("1bit.png");
244
string sInFile =
Helpers
.GetTestBitmapPath("81674-2bpp.png");
271
string sInFile =
Helpers
.GetTestBitmapPath("81674-2bpp.png");
295
string sInFile =
Helpers
.GetTestBitmapPath("81674-2bpp.png");
352
string sInFile =
Helpers
.GetTestBitmapPath("4bit.png");
393
string sInFile =
Helpers
.GetTestBitmapPath("4bit.png");
468
string sInFile =
Helpers
.GetTestBitmapPath("4bit.png");
mono\System.Drawing.Imaging\TiffCodecTests.cs (4)
42
string sInFile =
Helpers
.GetTestBitmapPath("almogaver32bits.tif");
64
string sInFile =
Helpers
.GetTestBitmapPath("almogaver32bits.tif");
73
string sInFile =
Helpers
.GetTestBitmapPath("almogaver32bits.tif");
117
string sInFile =
Helpers
.GetTestBitmapPath("almogaver32bits.tif");
mono\System.Drawing\BitmapTests.cs (10)
318
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
334
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
345
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
443
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
1191
using (Icon icon = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico")))
1209
using (Icon icon = new(
Helpers
.GetTestBitmapPath("32x32_one_entry_4bit.ico")))
1227
using (Icon icon = new(
Helpers
.GetTestBitmapPath("64x64_one_entry_8bit.ico")))
1245
using (Icon icon = new(
Helpers
.GetTestBitmapPath("96x96_one_entry_8bit.ico")))
1262
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
1288
string sInFile =
Helpers
.GetTestBitmapPath("almogaver24bits.bmp");
mono\System.Drawing\GraphicsTests.cs (1)
343
string sInFile =
Helpers
.GetTestBitmapPath("almogaver1bit.bmp");
mono\System.Imaging\MetafileTest.cs (7)
45
string filename =
Helpers
.GetTestBitmapPath(WmfPlaceable);
94
using Metafile mf = new(
Helpers
.GetTestBitmapPath(WmfPlaceable));
108
using FileStream fs = File.OpenRead(
Helpers
.GetTestBitmapPath(WmfPlaceable));
123
string filename =
Helpers
.GetTestBitmapPath(WmfPlaceable);
161
using Metafile mf = new(
Helpers
.GetTestBitmapPath(Emf));
169
using FileStream fs = File.OpenRead(
Helpers
.GetTestBitmapPath(Emf));
178
string filename =
Helpers
.GetTestBitmapPath(Emf);
System\Drawing\BitmapTests.cs (15)
44
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath(filename));
57
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath(filename), useIcm);
119
using Stream stream = File.OpenRead(
Helpers
.GetTestBitmapPath(filename));
133
using Stream stream = File.OpenRead(
Helpers
.GetTestBitmapPath(filename));
277
yield return new object[] { new Bitmap(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico")), 16, 16 };
278
yield return new object[] { new Bitmap(
Helpers
.GetTestBitmapPath("16x16_nonindexed_24bit.png")), 32, 48 };
302
using Bitmap image = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
660
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico")), 16, 16 };
661
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("32x32_one_entry_4bit.ico")), 32, 32 };
662
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("64x64_one_entry_8bit.ico")), 64, 64 };
663
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("96x96_one_entry_8bit.ico")), 96, 96 };
739
using Stream wmfStream = File.OpenRead(
Helpers
.GetTestBitmapPath("gdiwmfboundariesbug.wmf"));
743
using Stream expectedPngStream = File.OpenRead(
Helpers
.GetTestBitmapPath("gdiwmfboundariesbug-output.png"));
766
using Icon icon = new(
Helpers
.GetTestBitmapPath("48x48_one_entry_1bit.ico"));
907
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
System\Drawing\BufferedGraphicsTests.cs (2)
52
Helpers
.VerifyBitmap(image,
97
Helpers
.VerifyBitmap(targetImage,
System\Drawing\FontFamilyTests.cs (9)
38
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
177
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
191
collection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
203
collection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
222
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.ttf"));
232
collection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
244
collection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
256
collection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
268
collection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
System\Drawing\FontTests.cs (1)
338
collection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
System\Drawing\GdiPlusHandlesTests.cs (1)
25
using Icon ico = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
System\Drawing\GraphicsTests.cs (17)
86
Rectangle expected =
Helpers
.GetWindowDCRect(hdc);
95
Rectangle expected =
Helpers
.GetWindowDCRect(hdc);
104
Rectangle expected =
Helpers
.GetWindowDCRect(hdc);
219
Rectangle expected =
Helpers
.GetHWndRect((HWND)hwnd);
228
Rectangle expected =
Helpers
.GetHWndRect((HWND)hwnd);
286
using Metafile image = new(
Helpers
.GetTestBitmapPath("telescope_01.wmf"));
325
Helpers
.VerifyBitmap(targetImage,
327
[transparentBlack, transparentBlack,
Helpers
.EmptyColor],
329
[
Helpers
.EmptyColor, transparentWhite, transparentWhite]
377
[transparentBlack, transparentBlack,
Helpers
.EmptyColor],
379
[
Helpers
.EmptyColor, transparentWhite, transparentWhite]
414
Helpers
.VerifyBitmap(image, expectedIntersectionColor);
868
Helpers
.VerifyBitmap(image, expectedRendering);
1065
Color empty =
Helpers
.EmptyColor;
1078
Helpers
.VerifyBitmap(image,
2745
Helpers
.VerifyBitmap(image,
2786
Helpers
.VerifyBitmapNotBlank(image);
System\Drawing\IconTests.cs (39)
40
using Icon icon = new(
Helpers
.GetTestBitmapPath(name));
70
using Icon icon = new(
Helpers
.GetTestBitmapPath(fileName), size.Width, size.Height);
80
using Icon icon = new(
Helpers
.GetTestBitmapPath(fileName), size);
97
using var stream = File.OpenRead(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
107
TrickleStream stream = new(File.ReadAllBytes(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")));
124
using var stream = File.OpenRead(
Helpers
.GetTestBitmapPath(fileName));
135
using var stream = File.OpenRead(
Helpers
.GetTestBitmapPath(fileName));
222
using Icon sourceIcon = new(
Helpers
.GetTestBitmapPath(fileName));
234
using Icon sourceIcon = new(
Helpers
.GetTestBitmapPath(fileName));
281
using Icon icon = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
305
Icon icon = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
313
Icon icon = Icon.ExtractAssociatedIcon(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
322
using Icon source = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
337
using Icon icon = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_32bit.ico"), size, size);
351
ExtractAssociatedIcon_FilePath_Success_Helper(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
357
string bitmapPath =
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico");
425
SaveAndCompare(new Icon(
Helpers
.GetTestBitmapPath(fileName)), true);
431
string filePath =
Helpers
.GetTestBitmapPath("256x256_seven_entries_multiple_bits.ico");
441
string filePath =
Helpers
.GetTestBitmapPath("256x256_seven_entries_multiple_bits.ico");
452
using Icon icon = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
459
using Icon source = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
469
using Icon icon = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
479
using Icon source = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
499
Icon icon = Icon.ExtractAssociatedIcon(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
507
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico")) };
508
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("32x32_one_entry_4bit.ico")) };
509
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("48x48_one_entry_1bit.ico")) };
510
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("64x64_one_entry_8bit.ico")) };
511
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("96x96_one_entry_8bit.ico")) };
512
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 48, 48) };
513
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 256, 256) };
514
yield return new object[] { new Icon(
Helpers
.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 0, 0) };
544
using Icon originalIcon = new(
Helpers
.GetTestBitmapPath("48x48_one_entry_1bit.ico"));
636
using Icon icon1 = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
646
using Icon icon1 = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
664
using (Icon icon1 = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico")))
679
using (Icon icon1 = new(
Helpers
.GetTestBitmapPath("16x16_one_entry_4bit.ico")))
706
Icon icon = new(
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
750
using var stream = File.OpenRead(
Helpers
.GetTestBitmapPath("pngwithheight_icon.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\ImageConverterTests.cs (1)
38
using Icon icon = new(
Helpers
.GetTestBitmapPath(name));
System\Drawing\ImageTests.cs (14)
25
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
41
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
83
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("almogaver1bit.bmp"));
99
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
123
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("almogaver1bit.bmp"));
130
using Bitmap source = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
158
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
191
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("almogaver1bit.bmp"));
201
using Bitmap source = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
219
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
229
using Bitmap source = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
288
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
430
using Bitmap source = new(
Helpers
.GetTestBitmapPath("nature24bits.jpg"));
431
using Bitmap bitmap = new(
Helpers
.GetTestBitmapPath("almogaver1bit.bmp"));
System\Drawing\Imaging\ImageAttributesTests.cs (5)
1061
imageAttr.SetOutputChannelColorProfile(
Helpers
.GetTestColorProfilePath("RSWOP.icm"));
1074
imageAttr.SetOutputChannelColorProfile(
Helpers
.GetTestColorProfilePath("RSWOP.icm")));
1076
imageAttr.SetOutputChannelColorProfile(
Helpers
.GetTestColorProfilePath("RSWOP.icm"), ColorAdjustType.Default));
1127
imageAttr.SetOutputChannelColorProfile(
Helpers
.GetTestColorProfilePath("RSWOP.icm"));
1143
imageAttr.SetOutputChannelColorProfile(
Helpers
.GetTestColorProfilePath("RSWOP.icm"), type);
System\Drawing\Imaging\MetafileTests.cs (1)
943
return
Helpers
.GetTestBitmapPath(fileName);
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\Drawing\Printing\PageSettingsTests.cs (5)
34
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
67
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
71
if (!
Helpers
.TryGetPdfPrinterName(out string? printerName))
System\Drawing\Printing\PreviewPrintControllerTests.cs (8)
15
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
48
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
83
[Theory(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
95
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
System\Drawing\Printing\PrintControllerTests.cs (2)
15
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
System\Drawing\Printing\PrintDocumentTests.cs (13)
106
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
127
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
145
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
163
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.CanPrintToPdf))]
166
if (!
Helpers
.TryGetPdfPrinterName(out string? printerName))
188
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
206
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
System\Drawing\Printing\PrinterSettingsTests.cs (34)
42
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
78
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
158
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
161
Assert.NotNull(
Helpers
.InstalledPrinters);
171
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
189
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
197
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
289
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
296
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
354
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
365
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
378
[Theory(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
445
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
453
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
465
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
475
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
488
[Fact(Skip = "Condition not met", SkipType = typeof(
Helpers
), SkipUnless = nameof(
Helpers
.AnyInstalledPrinters))]
616
var installedPrinters =
Helpers
.InstalledPrinters;
System\Drawing\Text\PrivateFontCollectionTests.cs (8)
27
fontCollection.AddFontFile(
Helpers
.GetTestBitmapPath("empty.file"));
28
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
61
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.ttf"));
62
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.ttf"));
78
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.ttf"));
79
fontCollection.AddFontFile(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
138
byte[] data = File.ReadAllBytes(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
174
byte[] data = File.ReadAllBytes(
Helpers
.GetTestFontPath("CodeNewRoman.otf"));
System\Drawing\TextureBrushTests.cs (3)
15
yield return new object[] { new Metafile(
Helpers
.GetTestBitmapPath("telescope_01.wmf")), PixelFormat.Format32bppArgb, new Size(490, 654) };
42
using Icon icon = new(
Helpers
.GetTestBitmapPath("10x16_one_entry_32bit.ico"));
817
Helpers
.VerifyBitmap(targetImage, expectedColors);
System\Drawing\ToolboxBitmapAttributeTests.cs (3)
26
yield return new object[] {
Helpers
.GetTestBitmapPath("bitmap_173x183_indexed_8bit.bmp"), new Size(173, 183) };
27
yield return new object[] {
Helpers
.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"), new Size(16, 16) };
28
yield return new object[] {
Helpers
.GetTestBitmapPath("invalid.ico"), new Size(0, 0) };