public void AwaitTask() { var workflow = Cloud.New(() => { var task = Task.FromResult(42); return(Cloud.AwaitTask(task)); }); var result = this.Run(workflow); Assert.AreEqual(42, result); }