Table of Contents

Class CaptureTraceAttribute

Namespace
Xunit
Assembly
xunit.v3.core.dll

Captures Trace and Debug output and reports it to the test output helper.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
public sealed class CaptureTraceAttribute : BeforeAfterTestAttribute, IBeforeAfterTestAttribute
Inheritance
CaptureTraceAttribute
Implements
Inherited Members

Methods

Before(MethodInfo, IXunitTest)

This method is called before the test method is executed.

public override void Before(MethodInfo methodUnderTest, IXunitTest test)

Parameters

methodUnderTest MethodInfo

The method under test

test IXunitTest

The current ITest