-
Notifications
You must be signed in to change notification settings - Fork 161
FileOrDirectoryExistsConstraint
Charlie Poole edited this page Jan 31, 2016
·
4 revisions
FileOrDirectoryExistsConstraint tests that a File or Directory exists.
```C# FileOrDirectoryExistsConstraint() ``` ```C# Does.Exist Does.Not.Exist ``` ```C# IgnoreDirectories IgnoreFiles ``` ```C# 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);
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers