ConcordionTest Attribute: Test Fixture Classes

Each Concordion.NET fixture class has to be decorated with the attribute [ConcordionTest]. This tells the test runner that this class is intended to be a test. When NUnit discovers a class containing Concordion.NET fixture code annotated with [ConcordionTest], the Concordion.NUnit addin loads the related HTML specification document and creates a test instance that is executed with the help of NUnit.

Example

To run this active specification we need the minimal Concordion.NET fixture where the class is associated with [ConcordionTest].

The test class ConcordionTestAttributeTest.cs looks like this:

namespace Concordion.Spec.Concordion.Attributes
{
  [ConcordionTest]
  public class ConcordionTestAttributeTest
  {
    public bool HasBeenProcessed()
    {
      return true;
    }
  }
}

When it is executed with any NUnit test runner, it is processed by Concordion.NET.