Compartir a través de


PexExceptionValidatorAttributeBase.MarkTest Method

Definition

Gets the opportunity to annotate the test with more information about the exception. By default, does nothing.

public:
 virtual void MarkTest(Exception ^ exception, Microsoft::ExtendedReflection::Metadata::Builders::MethodDefinitionBuilder ^ testMethod);
public virtual void MarkTest (Exception exception, Microsoft.ExtendedReflection.Metadata.Builders.MethodDefinitionBuilder testMethod);
abstract member MarkTest : Exception * Microsoft.ExtendedReflection.Metadata.Builders.MethodDefinitionBuilder -> unit
override this.MarkTest : Exception * Microsoft.ExtendedReflection.Metadata.Builders.MethodDefinitionBuilder -> unit
Public Overridable Sub MarkTest (exception As Exception, testMethod As MethodDefinitionBuilder)

Parameters

exception
Exception

exception that was caught, if any (may be null)

testMethod
Microsoft.ExtendedReflection.Metadata.Builders.MethodDefinitionBuilder

Implements

Microsoft.Pex.Engine.Exceptions.IPexExceptionValidator.MarkTest(System.Exception,Microsoft.ExtendedReflection.Metadata.Builders.MethodDefinitionBuilder)

Applies to