public void HumanReadableEnumFactoryClass_GetDashStylesMethod_ReturnsArrayContainingDashStyleDashDotDotValueWithCorrectNameProperty() { HumanReadableEnum <DashStyle>[] testOutput = HumanReadableEnumFactory.GetDashStyles(); HumanReadableEnum <DashStyle> item = testOutput.Single(e => e.Value == DashStyle.DashDotDot); Assert.AreEqual(Resources.HumanReadableEnum_DashStyle_DashDotDot, item.Name); }
/// <summary> /// Default constructor. /// </summary> public TrainEditForm() { InitializeComponent(); _inViewUpdate = true; cbLinePattern.Items.AddRange(HumanReadableEnumFactory.GetDashStyles()); TimeHelpers.PopulateHalfOfDayComboBoxes(cbToWorkHalfOfDay, cbLocoToWorkHalfOfDay); _inViewUpdate = false; }
public void HumanReadableEnumFactoryClass_GetDashStylesMethod_ReturnsArrayOfLength5() { HumanReadableEnum <DashStyle>[] testOutput = HumanReadableEnumFactory.GetDashStyles(); Assert.AreEqual(5, testOutput.Length); }