C# Class NUnit.Framework.FileAssert

Summary description for FileAssert.
Exibir arquivo Open project: nunit/nunit

Public Methods

Method Description
AreEqual ( FileInfo expected, FileInfo actual ) : void

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.

AreEqual ( FileInfo expected, FileInfo actual, string message ) : void

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.

AreEqual ( Stream expected, Stream actual ) : void

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.

AreEqual ( Stream expected, Stream actual, string message ) : void

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.

AreEqual ( string expected, string actual ) : void

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.

AreEqual ( string expected, string actual, string message ) : void

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.

AreNotEqual ( FileInfo expected, FileInfo actual ) : void

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

AreNotEqual ( FileInfo expected, FileInfo actual, string message ) : void

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

AreNotEqual ( Stream expected, Stream actual ) : void

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

AreNotEqual ( Stream expected, Stream actual, string message ) : void

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

AreNotEqual ( string expected, string actual ) : void

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

AreNotEqual ( string expected, string actual, string message ) : void

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

DoesNotExist ( FileInfo actual ) : void

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

DoesNotExist ( FileInfo actual, string message ) : void

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

DoesNotExist ( string actual ) : void

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

DoesNotExist ( string actual, string message ) : void

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

Exists ( FileInfo actual ) : void

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

Exists ( FileInfo actual, string message ) : void

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

Exists ( string actual ) : void

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

Exists ( string actual, string message ) : void

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

Private Methods

Method Description
Equals ( object a, object b ) : bool
ReferenceEquals ( object a, object b ) : void

Method Details

AreEqual() static public method

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.
static public AreEqual ( FileInfo expected, FileInfo actual ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
return void

AreEqual() static public method

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.
static public AreEqual ( FileInfo expected, FileInfo actual, string message ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
return void

AreEqual() static public method

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.
static public AreEqual ( Stream expected, Stream actual ) : void
expected Stream The expected Stream
actual Stream The actual Stream
return void

AreEqual() static public method

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.
static public AreEqual ( Stream expected, Stream actual, string message ) : void
expected Stream The expected Stream
actual Stream The actual Stream
message string The message to display if Streams are not equal
return void

AreEqual() static public method

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.
static public AreEqual ( string expected, string actual ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
return void

AreEqual() static public method

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.
static public AreEqual ( string expected, string actual, string message ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
return void

AreNotEqual() static public method

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( FileInfo expected, FileInfo actual ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
return void

AreNotEqual() static public method

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( FileInfo expected, FileInfo actual, string message ) : void
expected System.IO.FileInfo A file containing the value that is expected
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
return void

AreNotEqual() static public method

Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( Stream expected, Stream actual ) : void
expected Stream The expected Stream
actual Stream The actual Stream
return void

AreNotEqual() static public method

Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( Stream expected, Stream actual, string message ) : void
expected Stream The expected Stream
actual Stream The actual Stream
message string The message to be displayed when the two Stream are the same.
return void

AreNotEqual() static public method

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( string expected, string actual ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
return void

AreNotEqual() static public method

Asserts that two files are not equal. If they are equal an AssertionException is thrown.
static public AreNotEqual ( string expected, string actual, string message ) : void
expected string The path to a file containing the value that is expected
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
return void

DoesNotExist() static public method

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( FileInfo actual ) : void
actual System.IO.FileInfo A file containing the actual value
return void

DoesNotExist() static public method

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( FileInfo actual, string message ) : void
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
return void

DoesNotExist() static public method

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( string actual ) : void
actual string The path to a file containing the actual value
return void

DoesNotExist() static public method

Asserts that the file does not exist. If it does exist an AssertionException is thrown.
static public DoesNotExist ( string actual, string message ) : void
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
return void

Exists() static public method

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( FileInfo actual ) : void
actual System.IO.FileInfo A file containing the actual value
return void

Exists() static public method

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( FileInfo actual, string message ) : void
actual System.IO.FileInfo A file containing the actual value
message string The message to display if Streams are not equal
return void

Exists() static public method

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( string actual ) : void
actual string The path to a file containing the actual value
return void

Exists() static public method

Asserts that the file exists. If it does not exist an AssertionException is thrown.
static public Exists ( string actual, string message ) : void
actual string The path to a file containing the actual value
message string The message to display if Streams are not equal
return void