The AssertionContext type exposes the following members.

Methods

  NameDescription
CaptureFailures
Performs an action and returns an array containing the assertion failures that were observed within the block.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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.)
GetPendingFailures
Gets the pending failures within the current assertion scope.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
SubmitFailure
Submits an assertion failure.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Extension Methods

  NameDescription
FormatOverloaded.

Properties

  NameDescription
AssertionFailureBehavior
Gets the current assertion failure behavior.
CurrentContext
Gets the current assertion context, or null if there is no current context.
TestContext
Gets the associated test context.

See Also