csUnit Class Library

Assert Members

Public Static Methods

AssertEquals Obsolete! Don't use! Assert.Equals(Object expected, Object actual) instead.
AssertFalse Obsolete! Don't use! Use Assert.False(bool Expression) instead.
AssertNotEquals Obsolete! Don't use! Use Assert.NotEquals(Object obj1, Object obj2) instead.
AssertTrue Obsolete! Don't use! Use Assert.True(bool expression) instead.
ContainsOverloaded. Assert that a string is member of a string array. The search is case sensitive.
EqualsOverloaded. Assert two objects are equal.
EqualsRegexOverloaded. Compares the given string (actual) against the regular expression. If the expression does not match on the string, then an assertion is raised.
FailOverloaded. Call this method immediately after the line, that should have thrown an exception. To be used for checked exceptions.
FalseOverloaded. Verify whether expression is 'false'.
GreaterOverloaded. 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.
LessOverloaded. 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.
NotEqualsOverloaded. Assert two objects are NOT equal.
NotEqualsRegexOverloaded. Compares the given string (actual) against the regular expression. If the expression does match on the string, then an assertion is raised.
NotNullOverloaded. Assert object is not null.
NullOverloaded. Assert a reference is 'null'.
ReferenceEqualsOverloaded. Assert that object reference refer to the same object.
StartsWithOverloaded. Assert that a string starts with a particular substring. The check is case sensitive.
TrueOverloaded. 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