Пример #1
0
        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());
        }
Пример #2
0
 protected Task Throwing_Func_Task() => Exception.AsTask();