예제 #1
0
 public void GetEnumTestsThrowsExceptionWhenAskedForNonExistingEnum()
 {
     Assert.Throws <NotSupportedException>(() => { EnumHelperEx <Numbers> .GetEnum("Three"); });
 }
예제 #2
0
        public void GetEnumTests()
        {
            var res = EnumHelperEx <Numbers> .GetEnum("One");

            Assert.Equal(Numbers.One, res);
        }