I suggest you ...

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.
}

}

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    GreenMooseGreenMoose shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base