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_GetPdfExportEngineMethod_ReturnsArrayContainingPdfExportEngineExternalValueWithCorrectNameProperty()
        {
            HumanReadableEnum <PdfExportEngine>[] testOutput = HumanReadableEnumFactory.GetPdfExportEngine();

            HumanReadableEnum <PdfExportEngine> item = testOutput.Single(e => e.Value == PdfExportEngine.External);

            Assert.AreEqual(Resources.HumanReadableEnum_PdfExportEngine_External, item.Name);
        }
        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);
        }
        public void HumanReadableEnumFactoryClass_GetGraphEditStyleMethod_ReturnsArrayContainingGraphEditStylePreserveSectionTimesValueWithCorrectNameProperty()
        {
            HumanReadableEnum <GraphEditStyle>[] testOutput = HumanReadableEnumFactory.GetGraphEditStyle();

            HumanReadableEnum <GraphEditStyle> item = testOutput.Single(e => e.Value == GraphEditStyle.PreserveSectionTimes);

            Assert.AreEqual(Resources.HumanReadableEnum_GraphEditStyle_PreserveSectionTimes, item.Name);
        }
        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_GetLocationFontTypeMethod_ReturnsArrayContainingLocationFontTypeCondensedValueWithCorrectNameProperty()
        {
            HumanReadableEnum <LocationFontType>[] testOutput = HumanReadableEnumFactory.GetLocationFontType();

            HumanReadableEnum <LocationFontType> item = testOutput.Single(e => e.Value == LocationFontType.Condensed);

            Assert.AreEqual(Resources.HumanReadableEnum_LocationFontType_Condensed, item.Name);
        }
        public void HumanReadableEnumFactoryClass_GetAddSubtractMethod_ReturnsArrayContainingAddSubtractSubtractValueWithCorrectNameProperty()
        {
            HumanReadableEnum <AddSubtract>[] testOutput = HumanReadableEnumFactory.GetAddSubtract();

            HumanReadableEnum <AddSubtract> item = testOutput.Single(e => e.Value == AddSubtract.Subtract);

            Assert.AreEqual(Resources.HumanReadableEnum_AddSubtract_Subtract, item.Name);
        }
        public void HumanReadableEnumFactoryClass_GetArrivalDepartureMethod_ReturnsArrayContainingArrivalDepartureOptionsDepartureValueWithCorrectNameProperty()
        {
            HumanReadableEnum <ArrivalDepartureOptions>[] testOutput = HumanReadableEnumFactory.GetArrivalDeparture();

            HumanReadableEnum <ArrivalDepartureOptions> item = testOutput.Single(e => e.Value == ArrivalDepartureOptions.Departure);

            Assert.AreEqual(Resources.HumanReadableEnum_ArrivalDeparture_Departure, item.Name);
        }
        public void HumanReadableEnumClass_ToStringMethod_ReturnsNameProperty()
        {
            string testValue = _rnd.NextString(_rnd.Next(48));
            HumanReadableEnum <ClockType> testObject = new HumanReadableEnum <ClockType> {
                Value = ClockType.TwelveHourClock, Name = testValue
            };

            string testOutput = testObject.ToString();

            Assert.AreEqual(testValue, testOutput);
        }