public void UnregisterAsyncTestExecutor() { if (asyncTestExecutor != null) { asyncTestExecutor.Dispose(); asyncTestExecutor = null; } }
// This method is called from the generated code so that it can register the IAsyncTestExecutor, which // is the abstraction between us and the actual implementation of the async enqueueing stuff static public void RegisterAsyncTestExecutor(ITestRunner testRunner, IAsyncTestExecutor newAsyncTestExecutor) { var asyncTestRunner = testRunner as AsyncTestRunner; if (asyncTestRunner != null) { asyncTestRunner.RegisterAsyncTestExecutor(newAsyncTestExecutor); } }
public AsyncContext(IAsyncTestExecutor asyncTestExecutor) { this.asyncTestExecutor = asyncTestExecutor; }
public void RegisterAsyncTestExecutor(IAsyncTestExecutor newAsyncTestExecutor) { UnregisterAsyncTestExecutor(); asyncTestExecutor = newAsyncTestExecutor; }
static public void RegisterAsyncTestExecutor(ITestRunner testRunner, IAsyncTestExecutor newAsyncTestExecutor) { AsyncTestRunner asyncTestRunner = testRunner as AsyncTestRunner; if (asyncTestRunner != null) asyncTestRunner.RegisterAsyncTestExecutor(newAsyncTestExecutor); }
protected AsyncSteps(ITestRunner testRunner, IAsyncTestExecutor asyncTestExecutor) : base(testRunner) { this.asyncTestExecutor = asyncTestExecutor; }