tags:

views:

119

answers:

1

Is there an API to get the name of the current test in fitnesse.NET code? My fixture class inherits fitlibrary.SequenceFixture.

A: 

There is no formal way, however you could write a method (or property) in your fixture like:

public string FixtureIsOfType()
{
    return this.GetType();
}

and then if it is a SequenceFixture call this in the fitnesse page like so

|show|fixture is of type|

Jeffrey Cameron