Expand All | Collapse All
 Set Up: Fit Nesse Acceptance Tests. Set Up
Import
fitnesse.acceptanceTests
!Row Fixtures can correctly handle the values in an enum.

color inspector
ToString()
Red
Blue

public enum Color
{
	Red,
	Blue
}

public class ColorInspectorFixture : RowFixture
{
	public override object[] Query()
	{
		Array colorsArray = Enum.GetValues(typeof(Color));
		ArrayList colorsList = new ArrayList(colorsArray);
		return colorsList.ToArray();
	}

	public override Type GetTargetClass()
	{
		return typeof(Color);
	}
}

Expand All | Collapse All
 Tear Down: Fit Nesse Acceptance Tests. Tear Down
ResetNamespacesFixture


[Front Page] [Recent Changes]