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