public void BasicVarChar_Convert_ToInteger_Fail()
{
const string s = "fail";
var obj = Field.VarChar(s);
Assert.IsNotNull(obj);
Assert.IsInstanceOf<StringType>(obj.Type);
Assert.AreEqual(SqlTypeCode.VarChar, obj.Type.TypeCode);
Field result = null;
Assert.DoesNotThrow(() => result = obj.CastTo(PrimitiveTypes.Numeric(SqlTypeCode.Integer)));
Assert.IsNotNull(result);
Assert.IsInstanceOf<NumericType>(result.Type);
Assert.IsTrue(result.IsNull);
}