public void FileExists() { Assert.ThrowsExact <ArgumentNullException>(() => Assert.FileExists(null as string)); Assert.ThrowsExact <ArgumentNullException>(() => Assert.FileExists(null as FileInfo)); Assert.ThrowsExact <AssertionException>(() => Assert.FileExists(NonExistingFile)); Assert.ThrowsExact <AssertionException>(() => Assert.FileExists(NonExistingFileInfo)); Assert.ThrowsExact <AssertionException>(() => Assert.FileExists(new FileInfo(NonExistingFile))); Assert.DoesNotThrow(() => Assert.FileExists(ExistingFile)); Assert.DoesNotThrow(() => Assert.FileExists(ExistingFileInfo)); }