Table of Contents

Class BeforeTestInfo

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

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

testCase TestCase
testIndex int
totalTests int
initialState IState
context TestingContext

Properties

Context

The testing context. Use Context.Get<T>() to access registered services.

public TestingContext Context { get; }

Property Value

TestingContext

InitialState

The initial state for this test.

public IState InitialState { get; }

Property Value

IState

TestCase

The test case about to be executed.

public TestCase TestCase { get; }

Property Value

TestCase

TestIndex

Zero-based index of this test case.

public int TestIndex { get; }

Property Value

int

TotalTests

Total number of tests in this run.

public int TotalTests { get; }

Property Value

int