FileOrDirectoryExistsConstraint - jnm2/nunit-docs-wiki GitHub Wiki
FileOrDirectoryExistsConstraint tests that a File or Directory exists.
FileOrDirectoryExistsConstraint()
Does.Exist
Does.Not.Exist
IgnoreDirectories
IgnoreFiles
Assert.That(fileStr, Does.Exist);
Assert.That(dirStr, Does.Exist);
Assert.That(fileStr, Does.Not.Exist);
Assert.That(dirStr, Does.Not.Exist);
Assert.That(new FileInfo(fileStr), Does.Exist);
Assert.That(new DirectoryInfo(dirStr), Does.Exist);