PsGet.Abstractions.PhysicalFileSystem.FileExists C# (CSharp) Method

FileExists() public method

public FileExists ( string fileName ) : bool
fileName string
return bool
        public bool FileExists(string fileName)
        {
            return File.Exists(GetFullPath(fileName));
        }

Usage Example

コード例 #1
0
        public void FileExistsReturnsFalseIfFileIsNotPresentOnDisk()
        {
            // Arrange
            PhysicalFileSystem fs = new PhysicalFileSystem(testRoot);

            // Act/Assert
            Assert.False(fs.FileExists("testExists.txt"));
        }
All Usage Examples Of PsGet.Abstractions.PhysicalFileSystem::FileExists