FitNesse.
UserGuide.
DotNet.
SuiteAcceptanceTests.
SuiteTypeConversionTests.
TestEnumConversion [add child]
TestEnumConversion [add child]
!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);
}
Add Child Page to TestEnumConversion