示例#1
0
        public void SkiLiftType_ToFriendlyString_InvalidEnum()
        {
            SkiLiftType skiLiftType = (SkiLiftType)(-1);

            Assert.Throws <InvalidEnumArgumentException <SkiLiftType> >(() => skiLiftType.ToFriendlyString());
        }
示例#2
0
 public void SkiLiftType_ToFriendlyString_ValidEnum(string expectedString, SkiLiftType skiLiftType)
 {
     Assert.Equal(expectedString, skiLiftType.ToFriendlyString());
 }