public void EnumValueFromDescriptionMissingAttributeFieldTest() { BadTypes result = EnumUtil.EnumValueFromDescription <BadTypes>("Very Bad"); Assert.AreEqual(BadTypes.NotSoBad, result); }
public void EnumValueFromDescriptionTest() { DockPosition dock = EnumUtil.EnumValueFromDescription <DockPosition>("Dock to All sides"); Assert.AreEqual(DockPosition.All, dock); }