Example #1
0
        public void TestMethod4()
        {
            const TestEnum E = TestEnum.ONE;

            TypeConverterHelper.RegisterTypeConverter <TestEnum, LocalizedEnumConverter>();
            Assert.AreEqual(@"ONE", E.GetLocalizedDescription(new CultureInfo(@"en-US")));

            Assert.AreEqual(@"Eén", E.GetLocalizedDescription(new CultureInfo(@"nl-BE")));
            Assert.AreEqual(@"Eén", E.GetLocalizedDescription(new CultureInfo(@"nl-NL")));
        }