The Assert type exposes the following members.

Methods

  NameDescription
AreEqualOverloaded.
AreNotEqualOverloaded.
AreNotSameOverloaded.
AreSameOverloaded.
AreValueEqual
Verifies that given two objects, expected and actual, the property described by the PropertyInfo object pi is present in both objects, is not null, and that the value of the property in both objects is equal.
BetweenOverloaded.
Contains
Verifies that s is a substring of contain.
EqualsOverloaded.
FailOverloaded.
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
GreaterOverloaded.
GreaterEqualThanOverloaded.
GreaterThanOverloaded.
IgnoreOverloaded.
InOverloaded.
IncrementAssertCount
Increments AssertCount by 1
IsAssignableFromOverloaded.
IsEmptyOverloaded.
IsFalseOverloaded.
IsInstanceOfTypeOverloaded.
IsNaNOverloaded.
IsNotAssignableFromOverloaded.
IsNotEmptyOverloaded.
IsNotInstanceOfTypeOverloaded.
IsNotNullOverloaded.
IsNullOverloaded.
IsTrueOverloaded.
LessOverloaded.
LowerEqualThanOverloaded.
LowerThanOverloaded.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
NotBetweenOverloaded.
NotInOverloaded.
ReferenceEquals
Overrides the default ReferenceEquals(Object, Object) method inherited from Object to throw an AssertionException instead. This is to ensure that there is no mistake in calling this function as part of an Assert in your tests. Use AreSame() instead or one of its overloads.
ResetAssertCount
Resets AssertCount to 0
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
WarningOverloaded.

Properties

  NameDescription
AssertCount
Number of Asserts made so far this test run

See Also