FileExists() public method

public FileExists ( string fileName ) : bool
fileName string
return bool
Ejemplo n.º 1
0
        public void FileExistsReturnsFalseIfFileIsNotPresentOnDisk()
        {
            // Arrange
            PhysicalFileSystem fs = new PhysicalFileSystem(testRoot);

            // Act/Assert
            Assert.False(fs.FileExists("testExists.txt"));
        }
Ejemplo n.º 2
0
        public void FileExistsReturnsTrueIfFileIsPresentOnDisk()
        {
            // Arrange
            PhysicalFileSystem fs = new PhysicalFileSystem(testRoot);
            WriteTestFile("testExists.txt");

            // Act/Assert
            Assert.True(fs.FileExists("testExists.txt"));
        }