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