NUnit.Framework.Assert: Method Members

The methods of NUnit.Framework.Assert are listed below. For a list of all members, see the Assert Members list.

See Also: Inherited members from System.Object

Public Methods

static
AreEqual(decimal, decimal)
Documentation for this section has not yet been entered.
static
AreEqual(int, int)
Documentation for this section has not yet been entered.
static
AreEqual(long, long)
Documentation for this section has not yet been entered.
static
AreEqual(object, object)
Documentation for this section has not yet been entered.
static
AreEqual(uint, uint)
Documentation for this section has not yet been entered.
static
AreEqual(ulong, ulong)
Documentation for this section has not yet been entered.
static
AreEqual(decimal, decimal, string)
Documentation for this section has not yet been entered.
static
AreEqual(double, double, double)
Documentation for this section has not yet been entered.
static
AreEqual(double, Nullable<double>, double)
Documentation for this section has not yet been entered.
static
AreEqual(int, int, string)
Documentation for this section has not yet been entered.
static
AreEqual(long, long, string)
Documentation for this section has not yet been entered.
static
AreEqual(object, object, string)
Documentation for this section has not yet been entered.
static
AreEqual(uint, uint, string)
Documentation for this section has not yet been entered.
static
AreEqual(ulong, ulong, string)
Documentation for this section has not yet been entered.
static
AreEqual(decimal, decimal, string, params object[])
Documentation for this section has not yet been entered.
static
AreEqual(double, double, double, string)
Documentation for this section has not yet been entered.
static
AreEqual(double, Nullable<double>, double, string)
Documentation for this section has not yet been entered.
static
AreEqual(int, int, string, params object[])
Documentation for this section has not yet been entered.
static
AreEqual(long, long, string, params object[])
Documentation for this section has not yet been entered.
static
AreEqual(object, object, string, params object[])
Documentation for this section has not yet been entered.
static
AreEqual(uint, uint, string, params object[])
Documentation for this section has not yet been entered.
static
AreEqual(ulong, ulong, string, params object[])
Documentation for this section has not yet been entered.
static
AreEqual(double, double, double, string, params object[])
Documentation for this section has not yet been entered.
static
AreEqual(double, Nullable<double>, double, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(decimal, decimal)
Documentation for this section has not yet been entered.
static
AreNotEqual(double, double)
Documentation for this section has not yet been entered.
static
AreNotEqual(int, int)
Documentation for this section has not yet been entered.
static
AreNotEqual(long, long)
Documentation for this section has not yet been entered.
static
AreNotEqual(object, object)
Documentation for this section has not yet been entered.
static
AreNotEqual(float, float)
Documentation for this section has not yet been entered.
static
AreNotEqual(uint, uint)
Documentation for this section has not yet been entered.
static
AreNotEqual(ulong, ulong)
Documentation for this section has not yet been entered.
static
AreNotEqual(decimal, decimal, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(double, double, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(int, int, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(long, long, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(object, object, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(float, float, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(uint, uint, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(ulong, ulong, string)
Documentation for this section has not yet been entered.
static
AreNotEqual(decimal, decimal, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(double, double, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(int, int, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(long, long, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(object, object, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(float, float, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(uint, uint, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotEqual(ulong, ulong, string, params object[])
Documentation for this section has not yet been entered.
static
AreNotSame(object, object)
Documentation for this section has not yet been entered.
static
AreNotSame(object, object, string)
Documentation for this section has not yet been entered.
static
AreNotSame(object, object, string, params object[])
Documentation for this section has not yet been entered.
static
AreSame(object, object)
Documentation for this section has not yet been entered.
static
AreSame(object, object, string)
Documentation for this section has not yet been entered.
static
AreSame(object, object, string, params object[])
Documentation for this section has not yet been entered.
static
ByVal(object, NUnit.Framework.Constraints.IResolveConstraint)
Documentation for this section has not yet been entered.
static
ByVal(object, NUnit.Framework.Constraints.IResolveConstraint, string)
Documentation for this section has not yet been entered.
static
ByVal(object, NUnit.Framework.Constraints.IResolveConstraint, string, params object[])
Documentation for this section has not yet been entered.
static
Catch(TestDelegate) : Exception
Documentation for this section has not yet been entered.
static
Catch(TestDelegate, string) : Exception
Documentation for this section has not yet been entered.
static
Catch(Type, TestDelegate) : Exception
Documentation for this section has not yet been entered.
static
Catch(TestDelegate, string, params object[]) : Exception
Documentation for this section has not yet been entered.
static
Catch(Type, TestDelegate, string) : Exception
Documentation for this section has not yet been entered.
static
Catch(Type, TestDelegate, string, params object[]) : Exception
Documentation for this section has not yet been entered.
static
Catch<T>(TestDelegate) : T
Documentation for this section has not yet been entered.
static
Catch<T>(TestDelegate, string) : T
Documentation for this section has not yet been entered.
static
Catch<T>(TestDelegate, string, params object[]) : T
Documentation for this section has not yet been entered.
static
DoesNotThrow(TestDelegate)
Documentation for this section has not yet been entered.
static
DoesNotThrow(TestDelegate, string)
Documentation for this section has not yet been entered.
static
DoesNotThrow(TestDelegate, string, params object[])
Documentation for this section has not yet been entered.
static
Equals(object, object) : bool
The Equals method throws an AssertionException. This is done to make sure there is no mistake by calling this function.
static
Fail()
Documentation for this section has not yet been entered.
static
Fail(string)
Documentation for this section has not yet been entered.
static
Fail(string, params object[])
Throw an assertion exception with a message and optional arguments
static
False(bool)
Asserts that a condition is false. If the condition is true the method throws an NUnit.Framework.AssertionException.
static
False(bool, string)
Asserts that a condition is false. If the condition is true the method throws an NUnit.Framework.AssertionException.
static
False(bool, string, params object[])
Asserts that a condition is false. If the condition is true the method throws an NUnit.Framework.AssertionException.
static
Ignore()
Throws an NUnit.Framework.IgnoreException. This causes the test to be reported as ignored.
static
Ignore(string)
Throws an NUnit.Framework.IgnoreException with the message that is passed in. This causes the test to be reported as ignored.
static
Ignore(string, params object[])
Throws an NUnit.Framework.IgnoreException with the message and arguments that are passed in. This causes the test to be reported as ignored.
static
Inconclusive()
Throws an NUnit.Framework.InconclusiveException. This causes the test to be reported as Inconclusive.
static
Inconclusive(string)
Throws an NUnit.Framework.InconclusiveException with the message that is passed in. This causes the test to be reported as inconclusive.
static
Inconclusive(string, params object[])
Throws an NUnit.Framework.InconclusiveException with the message and arguments that are passed in. This causes the test to be reported as inconclusive.
static
IsFalse(bool)
Documentation for this section has not yet been entered.
static
IsFalse(bool, string)
Documentation for this section has not yet been entered.
static
IsFalse(bool, string, params object[])
Documentation for this section has not yet been entered.
static
IsNotNull(object)
Documentation for this section has not yet been entered.
static
IsNotNull(object, string)
Documentation for this section has not yet been entered.
static
IsNotNull(object, string, params object[])
Documentation for this section has not yet been entered.
static
IsNull(object)
Documentation for this section has not yet been entered.
static
IsNull(object, string)
Documentation for this section has not yet been entered.
static
IsNull(object, string, params object[])
Documentation for this section has not yet been entered.
static
IsTrue(bool)
Documentation for this section has not yet been entered.
static
IsTrue(bool, string)
Documentation for this section has not yet been entered.
static
IsTrue(bool, string, params object[])
Documentation for this section has not yet been entered.
static
NotNull(object)
Verifies that the object that is passed in is not equal to

Example

null
If the object is

Example

null
then an NUnit.Framework.AssertionException is thrown.
static
NotNull(object, string)
Verifies that the object that is passed in is not equal to

Example

null
If the object is

Example

null
then an NUnit.Framework.AssertionException is thrown.
static
NotNull(object, string, params object[])
Verifies that the object that is passed in is not equal to

Example

null
If the object is

Example

null
then an NUnit.Framework.AssertionException is thrown.
static
Null(object)
Verifies that the object that is passed in is equal to

Example

null
If the object is not null

Example

null
then an NUnit.Framework.AssertionException is thrown.
static
Null(object, string)
Verifies that the object that is passed in is equal to

Example

null
If the object is not

Example

null
then an NUnit.Framework.AssertionException is thrown.
static
Null(object, string, params object[])
Verifies that the object that is passed in is equal to

Example

null
If the object is not

Example

null
then an NUnit.Framework.AssertionException is thrown.
static
Pass()
Throws a NUnit.Framework.SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.
static
Pass(string)
Throws a NUnit.Framework.SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.
static
Pass(string, params object[])
Throws a NUnit.Framework.SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.
static
ReferenceEquals(object, object)
override the default ReferenceEquals to throw an AssertionException. This implementation makes sure there is no mistake in calling this function as part of Assert.
static
That(bool)
Asserts that a condition is true. If the condition is false the method throws an NUnit.Framework.AssertionException.
static
That(TestDelegate, NUnit.Framework.Constraints.IResolveConstraint)
Documentation for this section has not yet been entered.
static
That(bool, string)
Asserts that a condition is true. If the condition is false the method throws an NUnit.Framework.AssertionException.
static
That(object, NUnit.Framework.Constraints.IResolveConstraint)
Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure.
static
That(bool, string, params object[])
Asserts that a condition is true. If the condition is false the method throws an NUnit.Framework.AssertionException.
static
That(object, NUnit.Framework.Constraints.IResolveConstraint, string)
Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure.
static
That(object, NUnit.Framework.Constraints.IResolveConstraint, string, params object[])
Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure.
static
That<T>(NUnit.Framework.Constraints.ActualValueDelegate<T>, NUnit.Framework.Constraints.IResolveConstraint)
Documentation for this section has not yet been entered.
static
That<T>(ref T, NUnit.Framework.Constraints.IResolveConstraint)
Documentation for this section has not yet been entered.
static
That<T>(NUnit.Framework.Constraints.ActualValueDelegate<T>, NUnit.Framework.Constraints.IResolveConstraint, string)
Documentation for this section has not yet been entered.
static
That<T>(ref T, NUnit.Framework.Constraints.IResolveConstraint, string)
Documentation for this section has not yet been entered.
static
That<T>(NUnit.Framework.Constraints.ActualValueDelegate<T>, NUnit.Framework.Constraints.IResolveConstraint, string, params object[])
Documentation for this section has not yet been entered.
static
That<T>(ref T, NUnit.Framework.Constraints.IResolveConstraint, string, params object[])
Documentation for this section has not yet been entered.
static
Throws(NUnit.Framework.Constraints.IResolveConstraint, TestDelegate) : Exception
Documentation for this section has not yet been entered.
static
Throws(Type, TestDelegate) : Exception
Documentation for this section has not yet been entered.
static
Throws(NUnit.Framework.Constraints.IResolveConstraint, TestDelegate, string) : Exception
Documentation for this section has not yet been entered.
static
Throws(Type, TestDelegate, string) : Exception
Documentation for this section has not yet been entered.
static
Throws(NUnit.Framework.Constraints.IResolveConstraint, TestDelegate, string, params object[]) : Exception
Documentation for this section has not yet been entered.
static
Throws(Type, TestDelegate, string, params object[]) : Exception
Documentation for this section has not yet been entered.
static
Throws<T>(TestDelegate) : T
Documentation for this section has not yet been entered.
static
Throws<T>(TestDelegate, string) : T
Documentation for this section has not yet been entered.
static
Throws<T>(TestDelegate, string, params object[]) : T
Documentation for this section has not yet been entered.
static
True(bool)
Asserts that a condition is true. If the condition is false the method throws an NUnit.Framework.AssertionException.
static
True(bool, string)
Asserts that a condition is true. If the condition is false the method throws an NUnit.Framework.AssertionException.
static
True(bool, string, params object[])
Asserts that a condition is true. If the condition is false the method throws an NUnit.Framework.AssertionException.

Protected Methods

static
AssertDoublesAreEqual(double, double, double, string, object[])
Documentation for this section has not yet been entered.