Class BeforeTestInfo
Information provided to BeforeEach hooks.
public class BeforeTestInfo
- Inheritance
-
BeforeTestInfo
- Inherited Members
Constructors
BeforeTestInfo(TestCase, int, int, IState, TestingContext)
public BeforeTestInfo(TestCase testCase, int testIndex, int totalTests, IState initialState, TestingContext context)
Parameters
testCaseTestCasetestIndexinttotalTestsintinitialStateIStatecontextTestingContext
Properties
Context
The testing context. Use Context.Get<T>() to access registered services.
public TestingContext Context { get; }
Property Value
InitialState
The initial state for this test.
public IState InitialState { get; }
Property Value
TestCase
The test case about to be executed.
public TestCase TestCase { get; }
Property Value
TestIndex
Zero-based index of this test case.
public int TestIndex { get; }
Property Value
TotalTests
Total number of tests in this run.
public int TotalTests { get; }