public void HumanReadableEnumFactoryClass_GetClockTypesMethod_ReturnsArrayContainingClockTypeTwentyFourHourClockValueWithCorrectNameProperty() { HumanReadableEnum <ClockType>[] testOutput = HumanReadableEnumFactory.GetClockTypes(); HumanReadableEnum <ClockType> item = testOutput.Single(e => e.Value == ClockType.TwentyFourHourClock); Assert.AreEqual(Resources.HumanReadableEnum_ClockType_24Hour, item.Name); }
public void HumanReadableEnumFactoryClass_GetClockTypesMethod_ReturnsArrayOfLength2() { HumanReadableEnum <ClockType>[] testOutput = HumanReadableEnumFactory.GetClockTypes(); Assert.AreEqual(2, testOutput.Length); }
/// <summary> /// Default constructor: creates the form and initialises the clock types checkbox values. /// </summary> public DocumentOptionsEditForm() { InitializeComponent(); cbClockType.Items.AddRange(HumanReadableEnumFactory.GetClockTypes()); cbGraphEditStyle.Items.AddRange(HumanReadableEnumFactory.GetGraphEditStyle()); }