Generic test assertions.
Static member | Description |
Full Usage:
Assert.AreEqual(expected, actual, message, args)
Parameters:
'T
-
The expected value.
actual : 'T
-
The actual value.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that two values are equal. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreEqual(expected, actual, message)
Parameters:
'T
-
The expected value.
actual : 'T
-
The actual value.
message : string
-
The message to display in case of failure.
|
Verifies that two values are equal. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreEqual(expected, actual)
Parameters:
'T
-
The expected value.
actual : 'T
-
The actual value.
|
Verifies that two values are equal. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreNotEqual(expected, actual, message, args)
Parameters:
'T
-
The expected value.
actual : 'T
-
The actual value.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that two values are not equal. If they are, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreNotEqual(expected, actual, message)
Parameters:
'T
-
The expected value.
actual : 'T
-
The actual value.
message : string
-
The message to display in case of failure.
|
Verifies that two values are not equal. If they are, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreNotEqual(expected, actual)
Parameters:
'T
-
The expected value.
actual : 'T
-
The actual value.
|
Verifies that two values are not equal. If they are, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreNotSame(expected, actual, message, args)
Parameters:
'T
-
The expected object.
actual : 'T
-
The actual object.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Asserts that two objects do not refer to the same object. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreNotSame(expected, actual, message)
Parameters:
'T
-
The expected object.
actual : 'T
-
The actual object.
message : string
-
The message to display in case of failure.
|
Asserts that two objects do not refer to the same object. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreNotSame(expected, actual)
Parameters:
'T
-
The expected object.
actual : 'T
-
The actual object.
|
Asserts that two objects do not refer to the same object. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreSame(expected, actual, message, args)
Parameters:
'T
-
The expected object.
actual : 'T
-
The actual object.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Asserts that two objects refer to the same object. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreSame(expected, actual, message)
Parameters:
'T
-
The expected object.
actual : 'T
-
The actual object.
message : string
-
The message to display in case of failure.
|
Asserts that two objects refer to the same object. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.AreSame(expected, actual)
Parameters:
'T
-
The expected object.
actual : 'T
-
The actual object.
|
Asserts that two objects refer to the same object. If they are not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Contains(expected, actual, message, args)
Parameters:
'T
-
The expected object.
actual : IEnumerable<'T>
-
The list to be examined.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Asserts that an object is contained in a list.
|
Full Usage:
Assert.Contains(expected, actual, message)
Parameters:
'T
-
The expected object.
actual : IEnumerable<'T>
-
The list to be examined.
message : string
-
The message to display in case of failure.
|
Asserts that an object is contained in a list.
|
Full Usage:
Assert.Contains(expected, actual)
Parameters:
'T
-
The expected object.
actual : IEnumerable<'T>
-
The list to be examined.
|
Asserts that an object is contained in a list.
|
Full Usage:
Assert.Greater(arg1, arg2, message, args)
Parameters:
'T
-
The first value, expected to be greater.
arg2 : 'T
-
The second value, expected to be less.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that the first value is greater than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Greater(arg1, arg2, message)
Parameters:
'T
-
The first value, expected to be greater.
arg2 : 'T
-
The second value, expected to be less.
message : string
-
The message to display in case of failure.
|
Verifies that the first value is greater than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Greater(arg1, arg2)
Parameters:
'T
-
The first value, expected to be greater.
arg2 : 'T
-
The second value, expected to be less.
|
Verifies that the first value is greater than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.GreaterOrEqual(arg1, arg2, message, args)
Parameters:
'T
-
The first value, expected to be greater.
arg2 : 'T
-
The second value, expected to be less.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that the first value is greater than or equal to than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.GreaterOrEqual(arg1, arg2, message)
Parameters:
'T
-
The first value, expected to be greater.
arg2 : 'T
-
The second value, expected to be less.
message : string
-
The message to display in case of failure.
|
Verifies that the first value is greater than or equal to than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.GreaterOrEqual(arg1, arg2)
Parameters:
'T
-
The first value, expected to be greater.
arg2 : 'T
-
The second value, expected to be less.
|
Verifies that the first value is greater than or equal to than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Less(arg1, arg2, message, args)
Parameters:
'T
-
The first value, expected to be less.
arg2 : 'T
-
The second value, expected to be greater.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that the first value is less than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Less(arg1, arg2, message)
Parameters:
'T
-
The first value, expected to be less.
arg2 : 'T
-
The second value, expected to be greater.
message : string
-
The message to display in case of failure.
|
Verifies that the first value is less than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Less(arg1, arg2)
Parameters:
'T
-
The first value, expected to be less.
arg2 : 'T
-
The second value, expected to be greater.
|
Verifies that the first value is less than the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.LessOrEqual(arg1, arg2, message, args)
Parameters:
'T
-
The first value, expected to be less.
arg2 : 'T
-
The second value, expected to be greater.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that the first value is less than or equal to the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.LessOrEqual(arg1, arg2, message)
Parameters:
'T
-
The first value, expected to be less.
arg2 : 'T
-
The second value, expected to be greater.
message : string
-
The message to display in case of failure.
|
Verifies that the first value is less than or equal to the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.LessOrEqual(arg1, arg2)
Parameters:
'T
-
The first value, expected to be less.
arg2 : 'T
-
The second value, expected to be greater.
|
Verifies that the first value is less than or equal to the second value. If it is not, then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.NotNull(arg, message, args)
Parameters:
'T
-
The object that is to be tested.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that the object that is passed in is not equal to 'null'. If the object is 'null', then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.NotNull(arg, message)
Parameters:
'T
-
The object that is to be tested.
message : string
-
The message to display in case of failure.
|
Verifies that the object that is passed in is not equal to 'null'. If the object is 'null', then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.NotNull(arg)
Parameters:
'T
-
The object that is to be tested.
|
Verifies that the object that is passed in is not equal to 'null'. If the object is 'null', then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Null(arg, message, args)
Parameters:
'T
-
The object that is to be tested.
message : string
-
The message to display in case of failure.
args : obj[]
-
Array of objects to be used in formatting the message.
|
Verifies that the object that is passed in is equal to 'null'. If the object is not 'null', then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Null(arg, message)
Parameters:
'T
-
The object that is to be tested.
message : string
-
The message to display in case of failure.
|
Verifies that the object that is passed in is equal to 'null'. If the object is not 'null', then an NUnit.Framework.AssertException is thrown.
|
Full Usage:
Assert.Null(arg)
Parameters:
'T
-
The object that is to be tested.
|
Verifies that the object that is passed in is equal to 'null'. If the object is not 'null', then an NUnit.Framework.AssertException is thrown.
|