C# Класс NUnit.Framework.FileAssert

Summary description for FileAssert.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Equals ( object a, object b ) : bool
ReferenceEquals ( object a, object b ) : void

Описание методов

AreEqual() статический публичный Метод

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
Результат void

AreEqual() статический публичный Метод

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
Результат void

AreEqual() статический публичный Метод

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
Результат void

AreEqual() статический публичный Метод

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
Результат void

AreEqual() статический публичный Метод

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
Результат void

AreEqual() статический публичный Метод

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
Результат void

AreNotEqual() статический публичный Метод

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
Результат void

AreNotEqual() статический публичный Метод

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
Результат void

AreNotEqual() статический публичный Метод

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
Результат void

AreNotEqual() статический публичный Метод

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.
Результат void

AreNotEqual() статический публичный Метод

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
Результат void

AreNotEqual() статический публичный Метод

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
Результат void

DoesNotExist() статический публичный Метод

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
Результат void

DoesNotExist() статический публичный Метод

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
Результат void

DoesNotExist() статический публичный Метод

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
Результат void

DoesNotExist() статический публичный Метод

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
Результат void

Exists() статический публичный Метод

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
Результат void

Exists() статический публичный Метод

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
Результат void

Exists() статический публичный Метод

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
Результат void

Exists() статический публичный Метод

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
Результат void