-
Notifications
You must be signed in to change notification settings - Fork 158
EmptyDirectoryConstraint
Charlie Poole edited this page Jan 31, 2016
·
4 revisions
The EmptyDirectoryConstraint tests if a Directory is empty.
```C# EmptyDirectoryConstraint() ``` ```C# Is.Empty ``` ```C# Assert.That(new DirectoryInfo(actual), Is.Empty); Assert.That(new DirectoryInfo(actual), Is.Not.Empty); ```Note: Is.Empty
actually creates an EmptyConstraint
. Subsequently applying it to a DirectoryInfo
causes an EmptyDirectoryConstraint
to be created.
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