public void GetEnumTestsThrowsExceptionWhenAskedForNonExistingEnum() { Assert.Throws <NotSupportedException>(() => { EnumHelperEx <Numbers> .GetEnum("Three"); }); }
public void GetEnumTests() { var res = EnumHelperEx <Numbers> .GetEnum("One"); Assert.Equal(Numbers.One, res); }