private async Task TestSwitchToPoolWorkInner(DynamicThreadPool testInst) { Assert.IsFalse(testInst.IsThreadPoolThread); //Assert.IsNull(SynchronizationContext.Current); await testInst.SwitchToPool(); Assert.IsTrue(testInst.IsThreadPoolThread); //Assert.IsNotNull(SynchronizationContext.Current); }