public FileExists ( string fileName ) : bool | ||
fileName | string | |
Résultat | bool |
public void FileExistsReturnsFalseIfFileIsNotPresentOnDisk() { // Arrange PhysicalFileSystem fs = new PhysicalFileSystem(testRoot); // Act/Assert Assert.False(fs.FileExists("testExists.txt")); }
public void FileExistsReturnsTrueIfFileIsPresentOnDisk() { // Arrange PhysicalFileSystem fs = new PhysicalFileSystem(testRoot); WriteTestFile("testExists.txt"); // Act/Assert Assert.True(fs.FileExists("testExists.txt")); }