Enable "hotspots" indicators also for awaited asynchronous method calls.
I would like NCrunch to display the actual time taken for an async method to have been called, when using await, instead of showing 0ms, just like they do for ordinary synchronous calls.
See http://screencast.com/t/1mwMqiK0bi
Example code:
[TestFixture]
internal class TestFixture
{
private async Task FooAsync()
{
await Task.Delay(1000);
}
[Test]
public async Task AsyncTest()
{
await FooAsync(); //Coverage marker indicates 0ms duration.
}
[Test]
public void NonAsyncTest()
{
FooAsync().Wait(); //Coverage marker indicates 1s duration.
}
}