Merge pull request #500 from Cysharp/hadashiA/inner-ex2

Use always innerException for Task.AsUniTask
This commit is contained in:
hadashiA
2023-09-14 16:22:09 +09:00
committed by GitHub
2 changed files with 11 additions and 2 deletions

View File

@@ -20,6 +20,15 @@ namespace NetCoreTests
await ThrowOrValueAsync().AsUniTask();
});
}
[Fact]
public async Task PropagateExceptionWhenAll()
{
await Assert.ThrowsAsync<InvalidOperationException>(async () =>
{
await Task.WhenAll(ThrowAsync(), ThrowAsync()).AsUniTask();
});
}
async Task ThrowAsync()
{