public void CanFulfillEnumSerializationTest()
        {
            CanFulfillEnum fulfillEnum = CanFulfillEnum.Yes;

            string textVal = fulfillEnum.GetDescriptionFromEnumValue();


            Assert.Equal("YES", textVal);

            CanFulfillEnum yesVal = textVal.GetEnumValue <CanFulfillEnum>();


            Assert.Equal(CanFulfillEnum.Yes, yesVal);
        }
示例#2
0
 public CanFulfillResponseAttributes(CanFulfillEnum canFulfill) : this()
 {
     CanFulfill = canFulfill;
 }