csUnit Class Library

Assert Members

Public Static (Shared) Methods

assertEquals Deprecated. Use Assert.Equals() instead.
AssertEquals Obsolete. Use Assert.Equals(Object expected, Object actual) instead.
assertFalse Obsolete. User Assert.False() instead.
AssertFalse Obsolete. Use Assert.False(bool Expression) instead.
assertNotEquals Obsolete. Use Assert.NotEquals() instead.
AssertNotEquals Obsolete. Use Assert.NotEquals(Object obj1, Object obj2) instead.
assertTrue Obsolete. Use Assert.True() instead.
AssertTrue Obsolete. Use Assert.True(bool expression) instead.
ContainsOverloaded. Assert that a string is member of a string array. The search is case sensitive.
Equals Assert two objects are equal.
fail Obsolete. Use Assert.Fail() instead.
FailOverloaded. Call this method immediately after the line, that should have thrown an exception. To be used for checked exceptions.
False Verify whether expression is 'false'.
Greater Asserts that an object is greater than a different object. Both objects must be of the same type, and that type must implement the System.IComparable interface.
Less Asserts that an object is less than a different object. Both objects must be of the same type, and that type must implement the System.IComparable interface.
NotEquals Assert two objects are NOT equal.
NotNull Assert object is not null.
Null Assert a reference is 'null'.
StartsWith Assert that a string starts with a particular substring. The check is case sensitive.
True Verify whether expression is 'true'.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

Assert ConstructorInitializes a new instance of the Assert class.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Assert Class | csUnit Namespace