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

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)

DO NOT USE! Use DirectoryAssert.AreEqual(...) instead. The Equals method throws an InvalidOperationException. 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)

DO NOT USE! The ReferenceEquals method throws an InvalidOperationException. This is done to make sure there is no mistake by calling this function.