public void WithOutLocalFunctionAsyncTest() { Assert.Throws <AggregateException>(() => { var result = LocalFunctions.DownloadPage("x").Result; }); }