Exemplo n.º 1
0
        public void EnumValueFromDescriptionMissingAttributeFieldTest()
        {
            BadTypes result = EnumUtil.EnumValueFromDescription <BadTypes>("Very Bad");

            Assert.AreEqual(BadTypes.NotSoBad, result);
        }
Exemplo n.º 2
0
        public void EnumValueFromDescriptionTest()
        {
            DockPosition dock = EnumUtil.EnumValueFromDescription <DockPosition>("Dock to All sides");

            Assert.AreEqual(DockPosition.All, dock);
        }