CreateTestContextCore(MetalamaTestContextOptions, IAdditionalServiceCollection, CancellationToken)
Creates the MetalamaTestContext. A derived class can override this method to create a derived context or to change the options.
Declaration
protected virtual MetalamaTestContext CreateTestContextCore(MetalamaTestContextOptions contextOptions, IAdditionalServiceCollection services, CancellationToken cancellationToken)Parameters
| Type | Name | Description |
|---|---|---|
| MetalamaTestContextOptions | contextOptions | The options of the context. |
| IAdditionalServiceCollection | services | The additional services of the context. |
| CancellationToken | cancellationToken | The token that xunit signals when it cancels the test. An override must pass it to the constructor of MetalamaTestContext, which links it to CancellationToken. |
Returns
| Type | Description |
|---|---|
| MetalamaTestContext |