private continuation_action_is_not_invoked_when_tasks_completes_successfully ( ) : void | ||
return | void |
public void continuation_action_is_not_invoked_when_tasks_completes_successfully()
{
using(var task = new Task(DoNothing))
{
var invoked = false;
var continuationTask = TaskExtensions.ContinueFaultWith(task, _ => invoked = true);
Assert.NotNull(continuationTask);
task.Start();
continuationTask.Wait(1000);
Assert.False(invoked);
}
}