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

FileAssert

public class FileAssert
Summary description for FileAssert.
protected FileAssert()

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

Verifies that two Streams are equal. Two Streams 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(Stream expected, Stream actual, string message)

Verifies that two Streams are equal. Two Streams 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(Stream expected, Stream actual)

Verifies that two Streams are equal. Two Streams 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(FileInfo expected, FileInfo actual, string message, object[] args)

Verifies that two files are equal. Two files 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(FileInfo expected, FileInfo actual, string message)

Verifies that two files are equal. Two files 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(FileInfo expected, FileInfo actual)

Verifies that two files are equal. Two files 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 files are equal. Two files 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 files are equal. Two files 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 files are equal. Two files 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(Stream expected, Stream actual, string message, object[] args)

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

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

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

public static void AreNotEqual(Stream expected, Stream actual)

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

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

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

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

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

public static void AreNotEqual(FileInfo expected, FileInfo actual)

Asserts that two files 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 files are not equal. If they are equal an AssertionException is thrown.

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

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

public static void AreNotEqual(string expected, string actual)

Asserts that two files 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 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.