public async Task should_be_invoke_async_success() { var result = await Chain.RunAsync(); Assert.IsNotNull(result); Assert.IsNotNull(result.Results); Assert.IsTrue(result.Results.All(p => !p.IsError)); Assert.IsTrue(result.Results.All(p => p.Result != null)); DispatcherToken.WaitCompleted(); }
public async Task should_be_invoke_async_item_error() { var result = await Chain.RunAsync(); Assert.IsNotNull(result); Assert.IsNotNull(result.Results); Assert.NotNull(result.Results.Single(p => p.IsError && p.Error != null)); Assert.IsTrue(result.Results.Any(p => !p.IsError)); DispatcherToken.WaitCompleted(); }