title: Generating documentation from unit tests
body: <p>We have <a href="https://github.com/machine/machine.specifications" rel="noreferrer">machine specifications</a> and we have <a href="http://www.specflow.org/" rel="noreferrer">specflow</a>. Specflow translates a textual description into unit tests. <strong>But is there any tool that will take NUnit fixtures and create a textual description something like the input of Specflow?</strong> Basically the opposite of what specflow is doing.</p>
  
  <p>I'm prepared to adjust how I format my unit-test regarding fixture name and test method name. But I'd rather not use any super fancy syntaxes like machine specifications, but rather just plain NUnit tests fixtures. The reason is that the tests are important and need to be refactorable, etc. Text formats are not so refactor friendly as unit-tests.</p>
  
  <p>For example:</p>
  
  <pre><code>[TestFixture] 
  class Given_Four
  {
      private Calculator c;
  
      [SetUp]
      public void Setup()
      {
          c = new Calculator(4);
      }
  
      [Test]
      public void When_adding_two_then_sum_should_be_six()
      {
          c.Add(2)
          Assert.That(c.Display, Is.EqualTo(6));
      }
  }
  </code></pre>
  
  <p>Again, this just an example. Basically any format of the will work, just as long as the tool creates a textual description of this test fixture. I've been googling around, but found nothing. Do <em>you</em> know of any such tool?</p>