C# Class NUnit.Framework.FileAssert

Summary description for FileAssert.
Afficher le fichier Open project: nunit/nunit

Méthodes publiques

Méthode 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

Méthode Description
Equals ( object a, object b ) : bool
ReferenceEquals ( object a, object b ) : void

Method Details

AreEqual() static public méthode

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
Résultat void

AreEqual() static public méthode

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
Résultat void

AreEqual() static public méthode

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
Résultat void

AreEqual() static public méthode

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
Résultat void

AreEqual() static public méthode

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
Résultat void

AreEqual() static public méthode

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
Résultat void

AreNotEqual() static public méthode

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
Résultat void

AreNotEqual() static public méthode

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
Résultat void

AreNotEqual() static public méthode

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
Résultat void

AreNotEqual() static public méthode

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.
Résultat void

AreNotEqual() static public méthode

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
Résultat void

AreNotEqual() static public méthode

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
Résultat void

DoesNotExist() static public méthode

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
Résultat void

DoesNotExist() static public méthode

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
Résultat void

DoesNotExist() static public méthode

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
Résultat void

DoesNotExist() static public méthode

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
Résultat void

Exists() static public méthode

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
Résultat void

Exists() static public méthode

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
Résultat void

Exists() static public méthode

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
Résultat void

Exists() static public méthode

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
Résultat void