The Assert type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AreEqual | Overloaded. | |
| AreNotEqual | Overloaded. | |
| AreNotSame | Overloaded. | |
| AreSame | Overloaded. | |
| 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.
| |
| Between | Overloaded. | |
| Contains |
Verifies that s is a substring of contain.
| |
| Equals | Overloaded. | |
| Fail | Overloaded. | |
| 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.) | |
| Greater | Overloaded. | |
| GreaterEqualThan | Overloaded. | |
| GreaterThan | Overloaded. | |
| Ignore | Overloaded. | |
| In | Overloaded. | |
| IncrementAssertCount |
Increments AssertCount by 1
| |
| IsAssignableFrom | Overloaded. | |
| IsEmpty | Overloaded. | |
| IsFalse | Overloaded. | |
| IsInstanceOfType | Overloaded. | |
| IsNaN | Overloaded. | |
| IsNotAssignableFrom | Overloaded. | |
| IsNotEmpty | Overloaded. | |
| IsNotInstanceOfType | Overloaded. | |
| IsNotNull | Overloaded. | |
| IsNull | Overloaded. | |
| IsTrue | Overloaded. | |
| Less | Overloaded. | |
| LowerEqualThan | Overloaded. | |
| LowerThan | Overloaded. | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| NotBetween | Overloaded. | |
| NotIn | Overloaded. | |
| 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 | (Inherited from Object.) | |
| Warning | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| AssertCount |
Number of Asserts made so far this test run
|
