IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
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... | |
Asserts on Files
|
inlinestatic |
The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function.
a | |
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.
a | |
b |
|
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.
expected | The expected Stream |
actual | The actual Stream |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
References NUnit.Framework.Is.EqualTo(), and NUnit.Framework.Assert.That().
Referenced by NUnit.Framework.Assertions.FileAssertTests.AreEqualFailsWhenOneIsNull(), NUnit.Framework.Assertions.FileAssertTests.AreEqualFailsWithFileInfos(), NUnit.Framework.Assertions.FileAssertTests.AreEqualFailsWithFiles(), NUnit.Framework.Assertions.FileAssertTests.AreEqualFailsWithStreams(), NUnit.Framework.Assertions.FileAssertTests.AreEqualFailsWithTextFilesAfterReadingBothFiles(), NUnit.Framework.Assertions.FileAssertTests.AreEqualPassesUsingSameFileTwice(), NUnit.Framework.Assertions.FileAssertTests.AreEqualPassesWhenBothAreNull(), NUnit.Framework.Assertions.FileAssertTests.AreEqualPassesWithEqualStreams(), NUnit.Framework.Assertions.FileAssertTests.AreEqualPassesWithFileInfos(), NUnit.Framework.Assertions.FileAssertTests.AreEqualPassesWithFiles(), NUnit.Framework.Assertions.FileAssertTests.AreEqualPassesWithTextFiles(), NUnit.Framework.Assertions.FileAssertTests.NonReadableStreamGivesException(), and NUnit.Framework.Assertions.FileAssertTests.NonSeekableStreamGivesException().
|
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.
expected | The expected Stream |
actual | The actual Stream |
|
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.
expected | A file containing the value that is expected |
actual | A file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
|
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.
expected | A file containing the value that is expected |
actual | A file containing the actual value |
|
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.
expected | The path to a file containing the value that is expected |
actual | The path to a file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
|
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.
expected | The path to a file containing the value that is expected |
actual | The path to a file containing the actual value |
|
inlinestatic |
Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.
expected | The expected Stream |
actual | The actual Stream |
message | The message to be displayed when the two Stream are the same. |
args | Arguments to be used in formatting the message |
Referenced by NUnit.Framework.Assertions.FileAssertTests.AreNotEqualFailsWhenBothAreNull(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualFailsWithFileInfos(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualFailsWithFiles(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualFailsWithStreams(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualIteratesOverTheEntireFile(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualIteratesOverTheEntireFileAndFails(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualPassesIfOneIsNull(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualPassesWithFileInfos(), NUnit.Framework.Assertions.FileAssertTests.AreNotEqualPassesWithFiles(), and NUnit.Framework.Assertions.FileAssertTests.AreNotEqualPassesWithStreams().
|
inlinestatic |
Asserts that two Streams are not equal. If they are equal an AssertionException is thrown.
expected | The expected Stream |
actual | The actual Stream |
|
inlinestatic |
Asserts that two files are not equal. If they are equal an AssertionException is thrown.
expected | A file containing the value that is expected |
actual | A file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
|
inlinestatic |
Asserts that two files are not equal. If they are equal an AssertionException is thrown.
expected | A file containing the value that is expected |
actual | A file containing the actual value |
|
inlinestatic |
Asserts that two files are not equal. If they are equal an AssertionException is thrown.
expected | The path to a file containing the value that is expected |
actual | The path to a file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
|
inlinestatic |
Asserts that two files are not equal. If they are equal an AssertionException is thrown.
expected | The path to a file containing the value that is expected |
actual | The path to a file containing the actual value |
|
inlinestatic |
Asserts that the file exists. If it does not exist an AssertionException is thrown.
actual | A file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
Referenced by NUnit.Framework.Assertions.FileAssertTests.ExistsFailsWhenFileInfoDoesNotExist(), NUnit.Framework.Assertions.FileAssertTests.ExistsFailsWhenFileInfoIsNull(), NUnit.Framework.Assertions.FileAssertTests.ExistsFailsWhenStringDoesNotExist(), NUnit.Framework.Assertions.FileAssertTests.ExistsFailsWhenStringIsEmpty(), NUnit.Framework.Assertions.FileAssertTests.ExistsFailsWhenStringIsNull(), NUnit.Framework.Assertions.FileAssertTests.ExistsPassesWhenFileInfoExists(), and NUnit.Framework.Assertions.FileAssertTests.ExistsPassesWhenStringExists().
|
inlinestatic |
Asserts that the file exists. If it does not exist an AssertionException is thrown.
actual | A file containing the actual value |
|
inlinestatic |
Asserts that the file exists. If it does not exist an AssertionException is thrown.
actual | The path to a file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
|
inlinestatic |
Asserts that the file exists. If it does not exist an AssertionException is thrown.
actual | The path to a file containing the actual value |
|
inlinestatic |
Asserts that the file does not exist. If it does exist an AssertionException is thrown.
actual | A file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
Referenced by NUnit.Framework.Assertions.FileAssertTests.DoesNotExistFailsWhenFileInfoExists(), NUnit.Framework.Assertions.FileAssertTests.DoesNotExistFailsWhenFileInfoIsNull(), NUnit.Framework.Assertions.FileAssertTests.DoesNotExistFailsWhenStringExists(), NUnit.Framework.Assertions.FileAssertTests.DoesNotExistFailsWhenStringIsEmpty(), NUnit.Framework.Assertions.FileAssertTests.DoesNotExistFailsWhenStringIsNull(), NUnit.Framework.Assertions.FileAssertTests.DoesNotExistPassesWhenFileInfoDoesNotExist(), and NUnit.Framework.Assertions.FileAssertTests.DoesNotExistPassesWhenStringDoesNotExist().
|
inlinestatic |
Asserts that the file does not exist. If it does exist an AssertionException is thrown.
actual | A file containing the actual value |
|
inlinestatic |
Asserts that the file does not exist. If it does exist an AssertionException is thrown.
actual | The path to a file containing the actual value |
message | The message to display if Streams are not equal |
args | Arguments to be used in formatting the message |
|
inlinestatic |
Asserts that the file does not exist. If it does exist an AssertionException is thrown.
actual | The path to a file containing the actual value |