public void GetById_ByNonExistent_DoesntFind() { AttributedEnum2?byId = EnumTagAttribute.GetById <AttributedEnum2>("1"); Assert.Null(byId); }
public void GetById_ByF_Finds() { AttributedEnum2 byId = EnumTagAttribute.GetById <AttributedEnum2>("F").Value; Assert.Equal(AttributedEnum2.AnotherAttributed, byId); }