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);
        }
コード例 #2
0
 private void PopulateFontTypeComboBox()
 {
     cbFontType.BeginUpdate();
     cbFontType.Items.AddRange(HumanReadableEnumFactory.GetLocationFontType());
     cbFontType.EndUpdate();
 }
        public void HumanReadableEnumFactoryClass_GetLocationFontTypeMethod_ReturnsArrayOfLength2()
        {
            HumanReadableEnum <LocationFontType>[] testOutput = HumanReadableEnumFactory.GetLocationFontType();

            Assert.AreEqual(2, testOutput.Length);
        }