Exemplo n.º 1
0
 public void CanCast_ByteToInt_ReturnsFalse()
 {
     Assert.False(ExplicitCastChecker.CanCast(typeof(byte), typeof(int)));
 }
Exemplo n.º 2
0
 public static bool IsExplicitCastableFrom(this Type dest, Type src)
 {
     return(ExplicitCastChecker.CanCast(src, dest));
 }
Exemplo n.º 3
0
 public void CanCast_IntToByte_ReturnsTrue()
 {
     Assert.IsTrue(ExplicitCastChecker.CanCast(typeof(int), typeof(byte)));
 }