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.FileAssert Class Reference

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

Detailed Description

Asserts on Files

Member Function Documentation

static new bool NUnit.Framework.FileAssert.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.FileAssert.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.FileAssert.AreEqual ( Stream  expected,
Stream  actual,
string  message,
params object[]  args 
)
inlinestatic
static void NUnit.Framework.FileAssert.AreEqual ( Stream  expected,
Stream  actual 
)
inlinestatic

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.

Parameters
expectedThe expected Stream
actualThe actual Stream
static void NUnit.Framework.FileAssert.AreEqual ( FileInfo  expected,
FileInfo  actual,
string  message,
params object[]  args 
)
inlinestatic

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.

Parameters
expectedA file containing the value that is expected
actualA file containing the actual value
messageThe message to display if Streams are not equal
argsArguments to be used in formatting the message
static void NUnit.Framework.FileAssert.AreEqual ( FileInfo  expected,
FileInfo  actual 
)
inlinestatic

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.

Parameters
expectedA file containing the value that is expected
actualA file containing the actual value
static void NUnit.Framework.FileAssert.AreEqual ( string  expected,
string  actual,
string  message,
params object[]  args 
)
inlinestatic

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.

Parameters
expectedThe path to a file containing the value that is expected
actualThe path to a file containing the actual value
messageThe message to display if Streams are not equal
argsArguments to be used in formatting the message
static void NUnit.Framework.FileAssert.AreEqual ( string  expected,
string  actual 
)
inlinestatic

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.

Parameters
expectedThe path to a file containing the value that is expected
actualThe path to a file containing the actual value
static void NUnit.Framework.FileAssert.AreNotEqual ( Stream  expected,
Stream  actual 
)
inlinestatic

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

Parameters
expectedThe expected Stream
actualThe actual Stream
static void NUnit.Framework.FileAssert.AreNotEqual ( FileInfo  expected,
FileInfo  actual,
string  message,
params object[]  args 
)
inlinestatic

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

Parameters
expectedA file containing the value that is expected
actualA file containing the actual value
messageThe message to display if Streams are not equal
argsArguments to be used in formatting the message
static void NUnit.Framework.FileAssert.AreNotEqual ( FileInfo  expected,
FileInfo  actual 
)
inlinestatic

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

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

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

Parameters
expectedThe path to a file containing the value that is expected
actualThe path to a file containing the actual value
messageThe message to display if Streams are not equal
argsArguments to be used in formatting the message
static void NUnit.Framework.FileAssert.AreNotEqual ( string  expected,
string  actual 
)
inlinestatic

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

Parameters
expectedThe path to a file containing the value that is expected
actualThe path to a file containing the actual value
static void NUnit.Framework.FileAssert.Exists ( FileInfo  actual,
string  message,
params object[]  args 
)
inlinestatic
static void NUnit.Framework.FileAssert.Exists ( FileInfo  actual)
inlinestatic

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

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

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

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

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

Parameters
actualThe path to a file containing the actual value
static void NUnit.Framework.FileAssert.DoesNotExist ( FileInfo  actual,
string  message,
params object[]  args 
)
inlinestatic
static void NUnit.Framework.FileAssert.DoesNotExist ( FileInfo  actual)
inlinestatic

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

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

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

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

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

Parameters
actualThe path to a file containing the actual value

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