public void ContinueWith_CustomScheduleRejected() { var scheduler = new NonInlineableScheduler(); var t = Task.Factory.StartNew(delegate { }). ContinueWith(r => { }, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, scheduler); Assert.IsTrue(t.Wait(5000)); }
public void ContinueWith_CustomScheduleRejected () { var scheduler = new NonInlineableScheduler (); var t = Task.Factory.StartNew (delegate { }). ContinueWith (r => {}, CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, scheduler); Assert.IsTrue (t.Wait (5000)); }