6 references to FromFile
System.Drawing.Common.Tests (6)
System\Drawing\ImageTests.cs (6)
499
Assert.Throws<ExternalException>(() => Image.
FromFile
(file.Path, useEmbeddedColorManagement: true));
506
AssertExtensions.Throws<ArgumentNullException>("path", () => Image.
FromFile
(null, useEmbeddedColorManagement: true));
513
AssertExtensions.Throws<ArgumentException>("path", null, () => Image.
FromFile
(string.Empty, useEmbeddedColorManagement: true));
525
Assert.Throws<PathTooLongException>(() => Image.
FromFile
(fileName,
533
Assert.Throws<FileNotFoundException>(() => Image.
FromFile
(fileName,
542
Assert.Throws<FileNotFoundException>(() => Image.
FromFile
("NoSuchFile", useEmbeddedColorManagement: true));