title: How to programmatically verify test has failed using TechTalk.SpecFlow and C#?
body: <p>I want to do execute <code>[AfterTestRun]</code> attribute marked method after test fails of <code>[Binding]</code> attribute marked class. How can I achieve something like:</p>
  
  <pre><code>[Binding]
  public class TestsRunner
  {
     [AfterTestFails] // There is no such attribute
     public static void DoStuff()
     {
  
     }
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[Binding]
  public class TestsRunner
  {
     [AfterTestRun]
     public static void DoStuff()
     {
          if(ScenarioContext.Current.TestHasFailed) // There is no such property
          {
              // Do stuff
          }  
     }
  }
  </code></pre>