Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An async test case returning Task<int>
[TestCase(1, 2, Result = 3)]
public async Task<int> TestAddAsync(int a, int b)
{
return await SumAsync(a, b);
}
public async Task<int> SumAsync(int a, int b)
{
return await Task.FromResult(a) + await Task.FromResult(b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.