Beispiel #1
0
 public void EnumToStringTest(NiceYou001 value, string expectedStr)
 {
     value.CastToString().ShouldBe(expectedStr);
 }
Beispiel #2
0
        public void EnumToIntTest(NiceYou001 value)
        {
            var expectedInt = (int)value;

            value.CastTo <int>().ShouldBe(expectedInt);
        }
Beispiel #3
0
 public void StringToEnumTest(string str, NiceYou001 expectedNice)
 {
     str.CastToEnum <NiceYou001>().ShouldBe(expectedNice);
 }