<PackageReference Include="NUnit" Version="3.14.0" />

FileOrDirectoryExistsConstraint

FileOrDirectoryExistsConstraint is used to determine if a file or directory exists

If true, the constraint will only check if files exist, not directories

If true, the constraint will only check if directories exist, not files

Initializes a new instance of the FileOrDirectoryExistsConstraint class that will check files and directories.

public FileOrDirectoryExistsConstraint(bool ignoreDirectories)

Initializes a new instance of the FileOrDirectoryExistsConstraint class that will only check files if ignoreDirectories is true.