Пример #1
0
        public void GetById_ByNonExistent_DoesntFind()
        {
            AttributedEnum2?byId = EnumTagAttribute.GetById <AttributedEnum2>("1");

            Assert.Null(byId);
        }
Пример #2
0
        public void GetById_ByF_Finds()
        {
            AttributedEnum2 byId = EnumTagAttribute.GetById <AttributedEnum2>("F").Value;

            Assert.Equal(AttributedEnum2.AnotherAttributed, byId);
        }