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