csUnit Class Library

ExpectedExceptionAttribute Members

Public Instance Constructors

ExpectedExceptionAttribute Constructor Creates an ExpectedExceptionAttribute object. Use this constructor if it is sufficient to check for the type of the exception only.

Public Instance Properties

ExceptionType Gets the system type of the expected exception.
TypeId (inherited from Attribute) When implemented in a derived class, gets a unique identifier for this Attribute.

Public Instance Methods

Equals (inherited from Attribute)
GetHashCode (inherited from Attribute)Returns the hash code for this instance.
GetType (inherited from Object)Gets the Type of the current instance.
IsDefaultAttribute (inherited from Attribute) When overridden in a derived class, returns an indication whether the value of this instance is the default value for the derived class.
IsEqualTo Compares either the type of an exception to an expected exception type. If in addition to that a particular exception object has been supplied, the exception will be compared to it, too.
Match (inherited from Attribute) When overridden in a derived class, returns a value indicating whether this instance equals a specified object.
ToString (inherited from Object)Returns a String that represents the current Object.

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

ExpectedExceptionAttribute Class | csUnit Namespace