253 references to Helpers
System.Drawing.Common.Tests (253)
Helpers.cs (1)
20public const string AnyInstalledPrinters = $"{nameof(Helpers)}.{nameof(AreAnyPrintersInstalled)}";
mono\System.Drawing.Imaging\BmpCodecTests.cs (10)
43string sInFile = Helpers.GetTestBitmapPath("almogaver1bit.bmp"); 64string sInFile = Helpers.GetTestBitmapPath("almogaver1bit.bmp"); 109string sInFile = Helpers.GetTestBitmapPath("almogaver8bits.bmp"); 130string sInFile = Helpers.GetTestBitmapPath("almogaver8bits.bmp"); 175string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 196string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 239string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 362string sInFile = Helpers.GetTestBitmapPath("almogaver32bits.bmp"); 382string sInFile = Helpers.GetTestBitmapPath("almogaver32bits.bmp"); 493string sInFile = Helpers.GetTestBitmapPath("non-inverted.bmp");
mono\System.Drawing.Imaging\GifCodecTests.cs (6)
61Bitmap8bitsFeatures(Helpers.GetTestBitmapPath("nature24bits.gif")); 67Bitmap8bitsFeatures(Helpers.GetTestBitmapPath("nature24bits87.gif")); 95Bitmap8bitsPixels(Helpers.GetTestBitmapPath("nature24bits.gif")); 101Bitmap8bitsPixels(Helpers.GetTestBitmapPath("nature24bits87.gif")); 107string sInFile = Helpers.GetTestBitmapPath("nature24bits.gif"); 166string sInFile = Helpers.GetTestBitmapPath("81773-interlaced.gif");
mono\System.Drawing.Imaging\IconCodecTests.cs (23)
41string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); 58string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); 67string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); 98string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); 106string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); 130string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); 216string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); 246string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); 254string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); 326string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); 421string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); 451string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); 459string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); 544string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); 643string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); 673string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); 681string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); 748string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); 901string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); 931string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); 939string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); 1523string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); 1834string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_32bit.ico");
mono\System.Drawing.Imaging\JpegCodecTests.cs (6)
42string sInFile = Helpers.GetTestBitmapPath("nature-greyscale.jpg"); 86string sInFile = Helpers.GetTestBitmapPath("nature-greyscale.jpg"); 110string sInFile = Helpers.GetTestBitmapPath("nature-greyscale.jpg"); 169string sInFile = Helpers.GetTestBitmapPath("nature24bits.jpg"); 201string sInFile = Helpers.GetTestBitmapPath("nature24bits.jpg"); 225string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp");
mono\System.Drawing.Imaging\PngCodecTests.cs (9)
42string sInFile = Helpers.GetTestBitmapPath("1bit.png"); 69string sInFile = Helpers.GetTestBitmapPath("1bit.png"); 143string sInFile = Helpers.GetTestBitmapPath("1bit.png"); 244string sInFile = Helpers.GetTestBitmapPath("81674-2bpp.png"); 271string sInFile = Helpers.GetTestBitmapPath("81674-2bpp.png"); 295string sInFile = Helpers.GetTestBitmapPath("81674-2bpp.png"); 352string sInFile = Helpers.GetTestBitmapPath("4bit.png"); 393string sInFile = Helpers.GetTestBitmapPath("4bit.png"); 468string sInFile = Helpers.GetTestBitmapPath("4bit.png");
mono\System.Drawing.Imaging\TiffCodecTests.cs (4)
42string sInFile = Helpers.GetTestBitmapPath("almogaver32bits.tif"); 64string sInFile = Helpers.GetTestBitmapPath("almogaver32bits.tif"); 73string sInFile = Helpers.GetTestBitmapPath("almogaver32bits.tif"); 117string sInFile = Helpers.GetTestBitmapPath("almogaver32bits.tif");
mono\System.Drawing\BitmapTests.cs (10)
318string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 334string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 345string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 443string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 1191using (Icon icon = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"))) 1209using (Icon icon = new(Helpers.GetTestBitmapPath("32x32_one_entry_4bit.ico"))) 1227using (Icon icon = new(Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"))) 1245using (Icon icon = new(Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"))) 1262string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp"); 1288string sInFile = Helpers.GetTestBitmapPath("almogaver24bits.bmp");
mono\System.Drawing\GraphicsTests.cs (1)
344string sInFile = Helpers.GetTestBitmapPath("almogaver1bit.bmp");
mono\System.Imaging\MetafileTest.cs (7)
45string filename = Helpers.GetTestBitmapPath(WmfPlaceable); 94using Metafile mf = new(Helpers.GetTestBitmapPath(WmfPlaceable)); 108using FileStream fs = File.OpenRead(Helpers.GetTestBitmapPath(WmfPlaceable)); 123string filename = Helpers.GetTestBitmapPath(WmfPlaceable); 161using Metafile mf = new(Helpers.GetTestBitmapPath(Emf)); 169using FileStream fs = File.OpenRead(Helpers.GetTestBitmapPath(Emf)); 178string filename = Helpers.GetTestBitmapPath(Emf);
System\Drawing\BitmapTests.cs (15)
45using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename)); 58using Bitmap bitmap = new(Helpers.GetTestBitmapPath(filename), useIcm); 120using Stream stream = File.OpenRead(Helpers.GetTestBitmapPath(filename)); 134using Stream stream = File.OpenRead(Helpers.GetTestBitmapPath(filename)); 278yield return new object[] { new Bitmap(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")), 16, 16 }; 279yield return new object[] { new Bitmap(Helpers.GetTestBitmapPath("16x16_nonindexed_24bit.png")), 32, 48 }; 303using Bitmap image = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 661yield return new object[] { new Icon(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")), 16, 16 }; 662yield return new object[] { new Icon(Helpers.GetTestBitmapPath("32x32_one_entry_4bit.ico")), 32, 32 }; 663yield return new object[] { new Icon(Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico")), 64, 64 }; 664yield return new object[] { new Icon(Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico")), 96, 96 }; 740using Stream wmfStream = File.OpenRead(Helpers.GetTestBitmapPath("gdiwmfboundariesbug.wmf")); 744using Stream expectedPngStream = File.OpenRead(Helpers.GetTestBitmapPath("gdiwmfboundariesbug-output.png")); 767using Icon icon = new(Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico")); 908using Bitmap bitmap = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
System\Drawing\BufferedGraphicsTests.cs (2)
52Helpers.VerifyBitmap(image, 97Helpers.VerifyBitmap(targetImage,
System\Drawing\FontFamilyTests.cs (9)
38fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 177fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 191collection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 203collection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 222fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.ttf")); 232collection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 244collection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 256collection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 268collection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf"));
System\Drawing\FontTests.cs (1)
338collection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf"));
System\Drawing\GdiPlusHandlesTests.cs (1)
25using Icon ico = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
System\Drawing\GraphicsTests.cs (17)
85Rectangle expected = Helpers.GetWindowDCRect(hdc); 94Rectangle expected = Helpers.GetWindowDCRect(hdc); 103Rectangle expected = Helpers.GetWindowDCRect(hdc); 218Rectangle expected = Helpers.GetHWndRect((HWND)hwnd); 227Rectangle expected = Helpers.GetHWndRect((HWND)hwnd); 285using Metafile image = new(Helpers.GetTestBitmapPath("telescope_01.wmf")); 324Helpers.VerifyBitmap(targetImage, 326[transparentBlack, transparentBlack, Helpers.EmptyColor], 328[Helpers.EmptyColor, transparentWhite, transparentWhite] 376[transparentBlack, transparentBlack, Helpers.EmptyColor], 378[Helpers.EmptyColor, transparentWhite, transparentWhite] 413Helpers.VerifyBitmap(image, expectedIntersectionColor); 867Helpers.VerifyBitmap(image, expectedRendering); 1064Color empty = Helpers.EmptyColor; 1077Helpers.VerifyBitmap(image, 2744Helpers.VerifyBitmap(image, 2785Helpers.VerifyBitmapNotBlank(image);
System\Drawing\IconTests.cs (39)
40using Icon icon = new(Helpers.GetTestBitmapPath(name)); 70using Icon icon = new(Helpers.GetTestBitmapPath(fileName), size.Width, size.Height); 80using Icon icon = new(Helpers.GetTestBitmapPath(fileName), size); 97using var stream = File.OpenRead(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 107TrickleStream stream = new(File.ReadAllBytes(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"))); 124using var stream = File.OpenRead(Helpers.GetTestBitmapPath(fileName)); 135using var stream = File.OpenRead(Helpers.GetTestBitmapPath(fileName)); 222using Icon sourceIcon = new(Helpers.GetTestBitmapPath(fileName)); 234using Icon sourceIcon = new(Helpers.GetTestBitmapPath(fileName)); 281using Icon icon = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 305Icon icon = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 313Icon icon = Icon.ExtractAssociatedIcon(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 322using Icon source = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 337using Icon icon = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_32bit.ico"), size, size); 351ExtractAssociatedIcon_FilePath_Success_Helper(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 357string bitmapPath = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); 425SaveAndCompare(new Icon(Helpers.GetTestBitmapPath(fileName)), true); 431string filePath = Helpers.GetTestBitmapPath("256x256_seven_entries_multiple_bits.ico"); 441string filePath = Helpers.GetTestBitmapPath("256x256_seven_entries_multiple_bits.ico"); 452using Icon icon = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 459using Icon source = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 469using Icon icon = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 479using Icon source = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 499Icon icon = Icon.ExtractAssociatedIcon(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 507yield return new object[] { new Icon(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")) }; 508yield return new object[] { new Icon(Helpers.GetTestBitmapPath("32x32_one_entry_4bit.ico")) }; 509yield return new object[] { new Icon(Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico")) }; 510yield return new object[] { new Icon(Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico")) }; 511yield return new object[] { new Icon(Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico")) }; 512yield return new object[] { new Icon(Helpers.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 48, 48) }; 513yield return new object[] { new Icon(Helpers.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 256, 256) }; 514yield return new object[] { new Icon(Helpers.GetTestBitmapPath("256x256_two_entries_multiple_bits.ico"), 0, 0) }; 544using Icon originalIcon = new(Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico")); 636using Icon icon1 = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 646using Icon icon1 = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")); 664using (Icon icon1 = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"))) 679using (Icon icon1 = new(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"))) 706Icon icon = new(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico")); 750using var stream = File.OpenRead(Helpers.GetTestBitmapPath("pngwithheight_icon.ico"));
System\Drawing\ImageAnimator.ManualTests.cs (1)
63bitmaps[imageName] = new Bitmap(Helpers.GetTestBitmapPath(imageName));
System\Drawing\ImageAnimatorTests.cs (20)
20using Bitmap image = new(Helpers.GetTestBitmapPath(imageName)); 27Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 34Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 37Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 44Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 51Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 54Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 61Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 68Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 71Bitmap image = new(Helpers.GetTestBitmapPath("1bit.png")); 84using Bitmap image = new(Helpers.GetTestBitmapPath(imageName)); 91Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 98Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 101Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-infinite.gif")); 108Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 115Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 123Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 131Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 138Bitmap animatedImage = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-2.gif")); 141Bitmap image = new(Helpers.GetTestBitmapPath("animated-timer-100fps-repeat-infinite.gif"));
System\Drawing\ImageConverterTests.cs (1)
38using Icon icon = new(Helpers.GetTestBitmapPath(name));
System\Drawing\ImageTests.cs (14)
23using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 39using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 81using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 97using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 121using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 128using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 156using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 189using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp")); 199using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 217using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 227using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 286using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 428using Bitmap source = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 429using Bitmap bitmap = new(Helpers.GetTestBitmapPath("almogaver1bit.bmp"));
System\Drawing\Imaging\ImageAttributesTests.cs (5)
1060imageAttr.SetOutputChannelColorProfile(Helpers.GetTestColorProfilePath("RSWOP.icm")); 1073imageAttr.SetOutputChannelColorProfile(Helpers.GetTestColorProfilePath("RSWOP.icm"))); 1075imageAttr.SetOutputChannelColorProfile(Helpers.GetTestColorProfilePath("RSWOP.icm"), ColorAdjustType.Default)); 1126imageAttr.SetOutputChannelColorProfile(Helpers.GetTestColorProfilePath("RSWOP.icm")); 1142imageAttr.SetOutputChannelColorProfile(Helpers.GetTestColorProfilePath("RSWOP.icm"), type);
System\Drawing\Imaging\MetafileTests.cs (1)
940return Helpers.GetTestBitmapPath(fileName);
System\Drawing\Imaging\PropertyItemTests.cs (5)
16using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 28using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 40using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 57using Bitmap bitmap = new(Helpers.GetTestBitmapPath("nature24bits.jpg")); 74using Bitmap image = new(Helpers.GetTestBitmapPath("16x16_nonindexed_24bit.png"));
System\Drawing\Printing\PageSettingsTests.cs (1)
34[ConditionalFact(Helpers.AnyInstalledPrinters)]
System\Drawing\Printing\PreviewPrintControllerTests.cs (4)
15[ConditionalFact(Helpers.AnyInstalledPrinters)] 48[ConditionalFact(Helpers.AnyInstalledPrinters)] 83[ConditionalTheory(Helpers.AnyInstalledPrinters)] 95[ConditionalFact(Helpers.AnyInstalledPrinters)]
System\Drawing\Printing\PrintControllerTests.cs (1)
15[ConditionalFact(Helpers.AnyInstalledPrinters)]
System\Drawing\Printing\PrintDocumentTests.cs (7)
106[ConditionalFact(Helpers.AnyInstalledPrinters)] 127[ConditionalFact(Helpers.AnyInstalledPrinters)] 145[ConditionalFact(Helpers.AnyInstalledPrinters)] 188[ConditionalFact(Helpers.AnyInstalledPrinters)] 206[ConditionalFact(Helpers.AnyInstalledPrinters)] 253foreach (string name in Helpers.InstalledPrinters) 266foreach (string name in Helpers.InstalledPrinters)
System\Drawing\Printing\PrinterSettingsTests.cs (18)
42[ConditionalFact(Helpers.AnyInstalledPrinters)] 78[ConditionalFact(Helpers.AnyInstalledPrinters)] 158[ConditionalFact(Helpers.AnyInstalledPrinters)] 161Assert.NotNull(Helpers.InstalledPrinters); 171[ConditionalFact(Helpers.AnyInstalledPrinters)] 189[ConditionalFact(Helpers.AnyInstalledPrinters)] 197[ConditionalFact(Helpers.AnyInstalledPrinters)] 289[ConditionalFact(Helpers.AnyInstalledPrinters)] 296[ConditionalFact(Helpers.AnyInstalledPrinters)] 354[ConditionalFact(Helpers.AnyInstalledPrinters)] 365[ConditionalFact(Helpers.AnyInstalledPrinters)] 378[ConditionalTheory(Helpers.AnyInstalledPrinters)] 445[ConditionalFact(Helpers.AnyInstalledPrinters)] 453[ConditionalFact(Helpers.AnyInstalledPrinters)] 465[ConditionalFact(Helpers.AnyInstalledPrinters)] 475[ConditionalFact(Helpers.AnyInstalledPrinters)] 488[ConditionalFact(Helpers.AnyInstalledPrinters)] 616var installedPrinters = Helpers.InstalledPrinters;
System\Drawing\Text\PrivateFontCollectionTests.cs (8)
27fontCollection.AddFontFile(Helpers.GetTestBitmapPath("empty.file")); 28fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 61fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.ttf")); 62fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.ttf")); 78fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.ttf")); 79fontCollection.AddFontFile(Helpers.GetTestFontPath("CodeNewRoman.otf")); 138byte[] data = File.ReadAllBytes(Helpers.GetTestFontPath("CodeNewRoman.otf")); 174byte[] data = File.ReadAllBytes(Helpers.GetTestFontPath("CodeNewRoman.otf"));
System\Drawing\TextureBrushTests.cs (3)
14yield return new object[] { new Metafile(Helpers.GetTestBitmapPath("telescope_01.wmf")), PixelFormat.Format32bppArgb, new Size(490, 654) }; 41using Icon icon = new(Helpers.GetTestBitmapPath("10x16_one_entry_32bit.ico")); 816Helpers.VerifyBitmap(targetImage, expectedColors);
System\Drawing\ToolboxBitmapAttributeTests.cs (3)
26yield return new object[] { Helpers.GetTestBitmapPath("bitmap_173x183_indexed_8bit.bmp"), new Size(173, 183) }; 27yield return new object[] { Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"), new Size(16, 16) }; 28yield return new object[] { Helpers.GetTestBitmapPath("invalid.ico"), new Size(0, 0) };