csUnit Class Library

TestAttribute Members

TestAttribute overview

Public Instance Constructors

TestAttribute Overloaded. Initializes a new instance of the TestAttribute class.

Public Instance Properties

Assertions Returns the number of assertions detected during this test.
Category Get/set the category for this test.
Duration Gets the time the test needed for execution.
FailureReason Gets a string with a textual information about why a test has failed.
TypeId (inherited from Attribute) When implemented in a derived class, gets a unique identifier for this Attribute.

Public Instance Methods

Equals (inherited from Attribute) 
ExecuteTest Executes a test. For csUnit internal use only.
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.
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.
VotesError Marks this test as having an error.
VotesFail Returns 'true' if the attribute thinks the test has failed.

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.
HasError Called by an attribute when it has detected an error.
HasFailed Called by an attribute when it has detected a failure.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

TestAttribute Class | csUnit Namespace