C# Class NUnit.Framework.DirectoryAssert

Summary description for DirectoryAssert
Show file Open project: nunit/nunit

Public Methods

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

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both point to the same directory. If they are not equal an AssertionException is thrown.

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

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both point to the same directory. If they are not equal an AssertionException is thrown.

AreNotEqual ( DirectoryInfo expected, DirectoryInfo actual ) : void

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

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

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

DoesNotExist ( DirectoryInfo actual ) : void

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

DoesNotExist ( DirectoryInfo actual, string message ) : void

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

DoesNotExist ( string actual ) : void

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

DoesNotExist ( string actual, string message ) : void

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

Exists ( DirectoryInfo actual ) : void

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

Exists ( DirectoryInfo actual, string message ) : void

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

Exists ( string actual ) : void

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

Exists ( string actual, string message ) : void

Asserts that the directory 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 directories are equal. Two directories are considered equal if both are null, or if both point to the same directory. If they are not equal an AssertionException is thrown.
static public AreEqual ( DirectoryInfo expected, DirectoryInfo actual ) : void
expected System.IO.DirectoryInfo A directory containing the value that is expected
actual System.IO.DirectoryInfo A directory containing the actual value
return void

AreEqual() static public method

Verifies that two directories are equal. Two directories are considered equal if both are null, or if both point to the same directory. If they are not equal an AssertionException is thrown.
static public AreEqual ( DirectoryInfo expected, DirectoryInfo actual, string message ) : void
expected System.IO.DirectoryInfo A directory containing the value that is expected
actual System.IO.DirectoryInfo A directory containing the actual value
message string The message to display if the directories are not equal
return void

AreNotEqual() static public method

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

AreNotEqual() static public method

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

DoesNotExist() static public method

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

DoesNotExist() static public method

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

DoesNotExist() static public method

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

DoesNotExist() static public method

Asserts that the directory 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 directory containing the actual value
message string The message to display if directories are not equal
return void

Exists() static public method

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

Exists() static public method

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

Exists() static public method

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

Exists() static public method

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