IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.DirectoryAssert Class Reference

Asserts on Directories More...

Static Public Member Functions

static new 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. More...
 
static new 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. More...
 
static void AreEqual (DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args)
 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. More...
 
static void AreEqual (DirectoryInfo expected, DirectoryInfo actual)
 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. More...
 
static void AreNotEqual (DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args)
 Asserts that two directories are not equal. If they are equal an AssertionException is thrown. More...
 
static void AreNotEqual (DirectoryInfo expected, DirectoryInfo actual)
 Asserts that two directories are not equal. If they are equal an AssertionException is thrown. More...
 
static void Exists (DirectoryInfo actual, string message, params object[] args)
 Asserts that the directory exists. If it does not exist an AssertionException is thrown. More...
 
static void Exists (DirectoryInfo actual)
 Asserts that the directory exists. If it does not exist an AssertionException is thrown. More...
 
static void Exists (string actual, string message, params object[] args)
 Asserts that the directory exists. If it does not exist an AssertionException is thrown. More...
 
static void Exists (string actual)
 Asserts that the directory exists. If it does not exist an AssertionException is thrown. More...
 
static void DoesNotExist (DirectoryInfo actual, string message, params object[] args)
 Asserts that the directory does not exist. If it does exist an AssertionException is thrown. More...
 
static void DoesNotExist (DirectoryInfo actual)
 Asserts that the directory does not exist. If it does exist an AssertionException is thrown. More...
 
static void DoesNotExist (string actual, string message, params object[] args)
 Asserts that the directory does not exist. If it does exist an AssertionException is thrown. More...
 
static void DoesNotExist (string actual)
 Asserts that the directory does not exist. If it does exist an AssertionException is thrown. More...
 

Detailed Description

Asserts on Directories

Member Function Documentation

static new bool NUnit.Framework.DirectoryAssert.Equals ( object  a,
object  b 
)
inlinestatic

The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function.

Parameters
a
b
static new void NUnit.Framework.DirectoryAssert.ReferenceEquals ( object  a,
object  b 
)
inlinestatic

override the default ReferenceEquals to throw an AssertionException. This implementation makes sure there is no mistake in calling this function as part of Assert.

Parameters
a
b
static void NUnit.Framework.DirectoryAssert.AreEqual ( DirectoryInfo  expected,
DirectoryInfo  actual,
string  message,
params object[]  args 
)
inlinestatic

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.

Parameters
expectedA directory containing the value that is expected
actualA directory containing the actual value
messageThe message to display if the directories are not equal
argsArguments to be used in formatting the message

Referenced by NUnit.Framework.Assertions.DirectoryAssertTests.AreEqualFailsWithDirectoryInfos(), and NUnit.Framework.Assertions.DirectoryAssertTests.AreEqualPassesWithDirectoryInfos().

static void NUnit.Framework.DirectoryAssert.AreEqual ( DirectoryInfo  expected,
DirectoryInfo  actual 
)
inlinestatic

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.

Parameters
expectedA directory containing the value that is expected
actualA directory containing the actual value
static void NUnit.Framework.DirectoryAssert.AreNotEqual ( DirectoryInfo  expected,
DirectoryInfo  actual,
string  message,
params object[]  args 
)
inlinestatic

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

Parameters
expectedA directory containing the value that is expected
actualA directory containing the actual value
messageThe message to display if directories are not equal
argsArguments to be used in formatting the message

Referenced by NUnit.Framework.Assertions.DirectoryAssertTests.AreNotEqualFailsWithDirectoryInfos(), NUnit.Framework.Assertions.DirectoryAssertTests.AreNotEqualPassesIfActualIsNull(), NUnit.Framework.Assertions.DirectoryAssertTests.AreNotEqualPassesIfExpectedIsNull(), and NUnit.Framework.Assertions.DirectoryAssertTests.AreNotEqualPassesWithDirectoryInfos().

static void NUnit.Framework.DirectoryAssert.AreNotEqual ( DirectoryInfo  expected,
DirectoryInfo  actual 
)
inlinestatic

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

Parameters
expectedA directory containing the value that is expected
actualA directory containing the actual value
static void NUnit.Framework.DirectoryAssert.Exists ( DirectoryInfo  actual,
string  message,
params object[]  args 
)
inlinestatic
static void NUnit.Framework.DirectoryAssert.Exists ( DirectoryInfo  actual)
inlinestatic

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

Parameters
actualA directory containing the actual value
static void NUnit.Framework.DirectoryAssert.Exists ( string  actual,
string  message,
params object[]  args 
)
inlinestatic

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

Parameters
actualThe path to a directory containing the actual value
messageThe message to display if directories are not equal
argsArguments to be used in formatting the message
static void NUnit.Framework.DirectoryAssert.Exists ( string  actual)
inlinestatic

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

Parameters
actualThe path to a directory containing the actual value
static void NUnit.Framework.DirectoryAssert.DoesNotExist ( DirectoryInfo  actual)
inlinestatic

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

Parameters
actualA directory containing the actual value
static void NUnit.Framework.DirectoryAssert.DoesNotExist ( string  actual,
string  message,
params object[]  args 
)
inlinestatic

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

Parameters
actualThe path to a directory containing the actual value
messageThe message to display if directories are not equal
argsArguments to be used in formatting the message
static void NUnit.Framework.DirectoryAssert.DoesNotExist ( string  actual)
inlinestatic

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

Parameters
actualThe path to a directory containing the actual value

The documentation for this class was generated from the following file: