title: xUnit not awaiting async test
body: <p>On VS 2013, I can't get this async test to fail.</p>
  
  <p>I have xUnit 1.8.0.1539 (installed from nuget), with the xUnit Test Runner VS extension (0.99.5). All current, AFAIK.</p>
  
  <p>I happen to also have Moq, AutoFixture, and FluentAssertions reference in the unit test, but I don't think that matters (but I'm admitting it in case it does).</p>
  
  <p>I have done async unit tests in other areas of my solution, and they work.</p>
  
  <p>I'm missing something with this newly created tests, and I can't tell what I'm missing or doing wrong.</p>
  
  <p><strong>NOTE</strong> The SUT code is not meant to be complete. I'm just trying to get the red light first, before I write the code to make the test go green.</p>
  
  <p>Here's the test code:</p>
  
  <pre><code>using System.Threading.Tasks;
  using FluentAssertions;
  using Xunit;
  
  namespace MobileApp.Proxy.Test
  {
  public class WhenRetrievingPriceDataFromClient
  {
      [Fact]
      public async Task GroupReportIsReturnedWithSomeData()
      {
          // arrange
          var sut = new Client();
  
          // act
          var actual = await sut.GetReportGroupAsync();
  
          // assert
  
          // Xunit test
          Assert.Null(actual);
          Assert.NotNull(actual);
          // FluentAssertions
          actual.Should().BeNull();
          actual.Should().NotBeNull();
      }
  }
  }
  </code></pre>
  
  <p>And here is the SUT code:</p>
  
  <pre><code>using System;
  using System.Diagnostics;
  using System.Net.Http;
  using System.Threading.Tasks;
  using MobileApp.Proxy.Properties;
  
  namespace MobileApp.Proxy
  {
      public class Client
      {
          public async Task&lt;ReportGroup&gt; GetReportGroupAsync()
          {
              return await Task.FromResult(new ReportGroup());
          }
      }
  }
  </code></pre>
  
  <p>Obviously, this test should fail! The Asserts for Null and NotNull can't both succeed, so my conclusion is that the test is exiting before it finishes getting the response from the SUT.</p>
  
  <p>What did I miss?</p>
  
  <p>OR, is there a better way I should have started an async test to make sure it fails before writing the SUT code?</p>