6 references to FromFile
System.Drawing.Common.Tests (6)
System\Drawing\ImageTests.cs (6)
497
Assert.Throws<OutOfMemoryException>(() => Image.
FromFile
(file.Path, useEmbeddedColorManagement: true));
504
AssertExtensions.Throws<ArgumentNullException>("path", () => Image.
FromFile
(null, useEmbeddedColorManagement: true));
511
AssertExtensions.Throws<ArgumentException>("path", null, () => Image.
FromFile
(string.Empty, useEmbeddedColorManagement: true));
523
Assert.Throws<PathTooLongException>(() => Image.
FromFile
(fileName,
531
Assert.Throws<FileNotFoundException>(() => Image.
FromFile
(fileName,
540
Assert.Throws<FileNotFoundException>(() => Image.
FromFile
("NoSuchFile", useEmbeddedColorManagement: true));