public void ToNameTEnum_WithAttrib_EqualsFirstName()
        {
            var name = EnumEx.ToName <TestEnum>(TestEnum.WithAttrib);

            Assert.AreEqual("With Attrib", name);
        }
        public void ToNameTEnum_OutOfRange_IsNull()
        {
            var name = EnumEx.ToName <TestEnum>((TestEnum)3);

            Assert.AreEqual("3", name);
        }
        public void ToName_WithAttrib_EqualsFirstName()
        {
            var name = EnumEx.ToName(typeof(TestEnum), TestEnum.WithAttrib);

            Assert.AreEqual("With Attrib", name);
        }
        public void ToName_OutOfRange_IsNull()
        {
            var name = EnumEx.ToName(typeof(TestEnum), (TestEnum)3);

            Assert.AreEqual("3", name);
        }