示例#1
0
        public void FromIntTest()
        {
            ActiveInactiveType target = EnumConvert <ActiveInactiveType> .FromInt(Convert.ToInt32('A'));

            Assert.IsTrue(target == ActiveInactiveType.Active);

            target = EnumConvert <ActiveInactiveType> .FromInt(Convert.ToInt32('I'));

            Assert.IsTrue(target == ActiveInactiveType.Inactive);
        }