PsGet.Abstractions.PhysicalFileSystem.FileExists C# (CSharp) 메소드

FileExists() 공개 메소드

public FileExists ( string fileName ) : bool
fileName string
리턴 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