CreateTestContext(string?, string?)
Declaration
protected TestContext CreateTestContext(string? callerFile = null, string? callerMemberName = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | callerFile | |
| string | callerMemberName |
Returns
| Type | Description |
|---|---|
| TestContext |
CreateTestContext(IAdditionalServiceCollection, string?, string?)
Creates a test context with a collection of additional services or mocks.
Declaration
protected TestContext CreateTestContext(IAdditionalServiceCollection service, string? callerFile = null, string? callerMemberName = null)Parameters
| Type | Name | Description |
|---|---|---|
| IAdditionalServiceCollection | service | |
| string | callerFile | |
| string | callerMemberName |
Returns
| Type | Description |
|---|---|
| TestContext |
CreateTestContext(TestContextOptions?, IAdditionalServiceCollection?, string?, string?)
Creates a test context, optionally with a non-default TestContextOptions or a collection of additional services or mocks.
Declaration
protected TestContext CreateTestContext(TestContextOptions? contextOptions, IAdditionalServiceCollection? services = null, string? callerFile = null, string? callerMemberName = null)Parameters
| Type | Name | Description |
|---|---|---|
| TestContextOptions | contextOptions | |
| IAdditionalServiceCollection | services | |
| string | callerFile | |
| string | callerMemberName |
Returns
| Type | Description |
|---|---|
| TestContext |