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

DirectoryAssert

public class DirectoryAssert
Summary description for DirectoryAssert
protected DirectoryAssert()

We don't actually want any instances of this object, but some people like to inherit from it to add other static methods. Hence, the protected constructor disallows any instances of this object.

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 have the same value byte for byte. If they are not equal an AssertionException is thrown.

public static void AreEqual(DirectoryInfo expected, DirectoryInfo actual, string message)

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both have the same value byte for byte. 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 have the same value byte for byte. If they are not equal an AssertionException is thrown.

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

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

public static void AreEqual(string expected, string actual, string message)

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both have the same value byte for byte. If they are not equal an AssertionException is thrown.

public static void AreEqual(string expected, string actual)

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both have the same value byte for byte. 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, string message)

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 AreNotEqual(string expected, string actual, string message, object[] args)

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

public static void AreNotEqual(string expected, string actual, string message)

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

public static void AreNotEqual(string expected, string actual)

Asserts that two directories are not equal. If they are equal 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 IsEmpty(DirectoryInfo directory, string message, object[] args)

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

public static void IsEmpty(DirectoryInfo directory, string message)

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

public static void IsEmpty(DirectoryInfo directory)

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

public static void IsEmpty(string directory, string message, object[] args)

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

public static void IsEmpty(string directory, string message)

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

public static void IsEmpty(string directory)

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

public static void IsNotEmpty(DirectoryInfo directory, string message, object[] args)

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

public static void IsNotEmpty(DirectoryInfo directory, string message)

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

public static void IsNotEmpty(DirectoryInfo directory)

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

public static void IsNotEmpty(string directory, string message, object[] args)

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

public static void IsNotEmpty(string directory, string message)

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

public static void IsNotEmpty(string directory)

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

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

Asserts that path does not contain actual as a subdirectory or an AssertionException is thrown.

public static void IsNotWithin(DirectoryInfo directory, DirectoryInfo actual, string message)

Asserts that path does not contain actual as a subdirectory or an AssertionException is thrown.

public static void IsNotWithin(DirectoryInfo directory, DirectoryInfo actual)

Asserts that path does not contain actual as a subdirectory or an AssertionException is thrown.

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

Asserts that path does not contain actual as a subdirectory or an AssertionException is thrown.

public static void IsNotWithin(string directory, string actual, string message)

Asserts that path does not contain actual as a subdirectory or an AssertionException is thrown.

public static void IsNotWithin(string directory, string actual)

Asserts that path does not contain actual as a subdirectory or an AssertionException is thrown.

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

Asserts that path contains actual as a subdirectory or an AssertionException is thrown.

public static void IsWithin(DirectoryInfo directory, DirectoryInfo actual, string message)

Asserts that path contains actual as a subdirectory or an AssertionException is thrown.

public static void IsWithin(DirectoryInfo directory, DirectoryInfo actual)

Asserts that path contains actual as a subdirectory or an AssertionException is thrown.

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

Asserts that path contains actual as a subdirectory or an AssertionException is thrown.

public static void IsWithin(string directory, string actual, string message)

Asserts that path contains actual as a subdirectory or an AssertionException is thrown.

public static void IsWithin(string directory, string actual)

Asserts that path contains actual as a subdirectory or 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.