Esempio n. 1
0
        public void TestStringEnumConvertTo()
        {
            var converter = new StringEnumConverter();

            Assert.AreEqual(TestEnums.Hello, converter.ConvertTo("TestEnums.Hello", typeof(TestEnums)));
            Assert.AreEqual(TestEnums.World, converter.ConvertTo("World", typeof(TestEnums)));
            Assert.AreEqual(TestEnums.Hello, converter.ConvertTo("1", typeof(TestEnums)));
        }