public void HumanReadableEnumFactoryClass_GetHalfOfDayForSelectionMethod_ReturnsArrayContainingHalfOfDayPMValueWithCorrectNameProperty() { HumanReadableEnum <HalfOfDay>[] testOutput = HumanReadableEnumFactory.GetHalfOfDayForSelection(); HumanReadableEnum <HalfOfDay> item = testOutput.Single(e => e.Value == HalfOfDay.PM); Assert.AreEqual(Resources.HumanReadableEnum_HalfOfDay_PM, item.Name); }
public void HumanReadableEnumFactoryClass_GetHalfOfDayForSelectionMethod_ReturnsArrayOfLength2() { HumanReadableEnum <HalfOfDay>[] testOutput = HumanReadableEnumFactory.GetHalfOfDayForSelection(); Assert.AreEqual(2, testOutput.Length); }