Example #1
0
 public void CanCast_IntToByte_ReturnsFalse()
 {
     Assert.IsFalse(ImplicitCastChecker.CanCast(typeof(int), typeof(byte)));
 }
Example #2
0
 public static bool IsImplicitCastableFrom(this Type dest, Type src)
 {
     return(ImplicitCastChecker.CanCast(src, dest));
 }
Example #3
0
 public void CanCast_ByteToInt_ReturnsTrue()
 {
     Assert.IsTrue(ImplicitCastChecker.CanCast(typeof(byte), typeof(int)));
 }