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