<PackageReference Include="NUnit" Version="3.0.0-beta-5" />

DirectoryAssert

public static class DirectoryAssert
Asserts on Directories
public static void AreEqual(DirectoryInfo expected, DirectoryInfo actual, string message, object[] args)

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both point to the same directory. If they are not equal an AssertionException is thrown.

public static void AreEqual(DirectoryInfo expected, DirectoryInfo actual)

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both point to the same directory. If they are not equal an AssertionException is thrown.

public static void AreNotEqual(DirectoryInfo expected, DirectoryInfo actual, string message, object[] args)

Asserts that two directories are not equal. If they are equal an AssertionException is thrown.

public static void AreNotEqual(DirectoryInfo expected, DirectoryInfo actual)

Asserts that two directories are not equal. If they are equal an AssertionException is thrown.

public static void DoesNotExist(DirectoryInfo actual, string message, object[] args)

Asserts that the directory does not exist. If it does exist an AssertionException is thrown.

public static void DoesNotExist(DirectoryInfo actual)

Asserts that the directory does not exist. If it does exist an AssertionException is thrown.

public static void DoesNotExist(string actual, string message, object[] args)

Asserts that the directory does not exist. If it does exist an AssertionException is thrown.

public static void DoesNotExist(string actual)

Asserts that the directory does not exist. If it does exist an AssertionException is thrown.

public static bool Equals(object a, object b)

The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function.

public static void Exists(DirectoryInfo actual, string message, object[] args)

Asserts that the directory exists. If it does not exist an AssertionException is thrown.

public static void Exists(DirectoryInfo actual)

Asserts that the directory exists. If it does not exist an AssertionException is thrown.

public static void Exists(string actual, string message, object[] args)

Asserts that the directory exists. If it does not exist an AssertionException is thrown.

public static void Exists(string actual)

Asserts that the directory exists. If it does not exist an AssertionException is thrown.

public static void ReferenceEquals(object a, object b)

override the default ReferenceEquals to throw an AssertionException. This implementation makes sure there is no mistake in calling this function as part of Assert.