Beispiel #1
0
 public void return_undefined_when_type_is_object()
 {
     Check.That(TypeOfValueEnum.GetEnumTypeOf(typeof(StateValue))).IsEqualTo(TypeOfValue.Undefined);
 }
Beispiel #2
0
 public static Type TypeOf(this TypeOfValue typeOfValue)
 {
     return(TypeOfValueEnum.GetTypeOf(typeOfValue));
 }
Beispiel #3
0
 public void return_typeofvalue_int()
 {
     Check.That(TypeOfValueEnum.GetEnumTypeOf(typeof(int))).IsEqualTo(TypeOfValue.Int);
 }
Beispiel #4
0
 public static TypeOfValue GetTypeOfValue(this Type type)
 {
     return(TypeOfValueEnum.GetEnumTypeOf(type));
 }