Свойство | Тип | Описание | |
---|---|---|---|
CreateIsolatedContext | TestExecutionContext | ||
InitializeLifetimeService | object |
Метод | Описание | |
---|---|---|
AddFormatter ( ValueFormatterFactory formatterFactory ) : void |
Adds a new ValueFormatterFactory to the chain of formatters
|
|
ClearCurrentContext ( ) : void |
Clear the current context. This is provided to prevent "leakage" of the CallContext containing the current context back to any runners.
|
|
EstablishExecutionEnvironment ( ) : void |
Set up the execution environment to match a context. Note that we may be running on the same thread where the context was initially created or on a different thread.
|
|
GetTestExecutionContext ( ) : TestExecutionContext |
Get the current context or return null if none is found.
|
|
IncrementAssertCount ( ) : void |
Increments the assert count by one.
|
|
IncrementAssertCount ( int count ) : void |
Increments the assert count by a specified amount.
|
|
TestExecutionContext ( ) : System |
Initializes a new instance of the TestExecutionContext class.
|
|
TestExecutionContext ( TestExecutionContext other ) : System |
Initializes a new instance of the TestExecutionContext class.
|
|
UpdateContextFromEnvironment ( ) : void |
Record any changes in the environment made by the test code in the execution context so it will be passed on to lower level tests.
|
Метод | Описание | |
---|---|---|
CreateIsolatedContext ( ) : TestExecutionContext | ||
InitializeLifetimeService ( ) : object |
public AddFormatter ( ValueFormatterFactory formatterFactory ) : void | ||
formatterFactory | ValueFormatterFactory | The new factory |
Результат | void |
public static ClearCurrentContext ( ) : void | ||
Результат | void |
public EstablishExecutionEnvironment ( ) : void | ||
Результат | void |
public static GetTestExecutionContext ( ) : TestExecutionContext | ||
Результат | TestExecutionContext |
public IncrementAssertCount ( int count ) : void | ||
count | int | |
Результат | void |
public TestExecutionContext ( TestExecutionContext other ) : System | ||
other | TestExecutionContext | An existing instance of TestExecutionContext. |
Результат | System |
public UpdateContextFromEnvironment ( ) : void | ||
Результат | void |