title: Get name of running test in Xunit
body: <p>Using Xunit, how can I get the name of the currently running test?</p>
  
  <pre><code>  public class TestWithCommonSetupAndTearDown : IDisposable
    {
      public TestWithCommonSetupAndTearDown ()
      {
        var nameOfRunningTest = "TODO";
        Console.WriteLine ("Setup for test '{0}.'", nameOfRunningTest);
      }
  
      [Fact]
      public void Blub ()
      {
      }
  
      public void Dispose ()
      {
        var nameOfRunningTest = "TODO";
        Console.WriteLine ("TearDown for test '{0}.'", nameOfRunningTest);
      }
    }
  </code></pre>
  
  <p><strong>Edit:</strong><br>
  In particular, I am looking for a replacement for NUnits <code>TestContext.CurrentContext.Test.Name</code> property.</p>