Class CaptureConsoleAttribute
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
public sealed class CaptureConsoleAttribute : BeforeAfterTestAttribute, IBeforeAfterTestAttribute
- Inheritance
-
CaptureConsoleAttribute
- Implements
- Inherited Members
Properties
CaptureError
Gets or sets a flag to indicate whether to override Error.
public bool CaptureError { get; set; }
Property Value
CaptureOut
Gets or sets a flag to indicate whether to override Out
(which includes the Write and WriteLine methods on Console).
public bool CaptureOut { get; set; }
Property Value
Methods
Before(MethodInfo, IXunitTest)
This method is called before the test method is executed.
public override void Before(MethodInfo methodUnderTest, IXunitTest test)
Parameters
methodUnderTestMethodInfoThe method under test
testIXunitTestThe current ITest