public void AsTask() { var e = new Exception(); var task = e.AsTask <int>(); Assert.NotNull(task); Assert.True(task.IsFaulted); Assert.Equal(e, task.Exception.GetBaseException()); }
protected Task Throwing_Func_Task() => Exception.AsTask();