private void TestFromBoolean(_Boolean x, Int32?expectedValue) { _Int32 expr = (_Int32)x; var dbExpr = (DbCastExpression)expr.DbExpression; dbExpr.Verify(x, typeof(bool?), typeof(Int32?)); expr.VerifyEval(expectedValue); }
private void TestFromString(String x, Int32?expectedValue) { _String column1 = x; _Int32 expr = (_Int32)column1; var dbExpr = (DbCastExpression)expr.DbExpression; dbExpr.Verify(column1, typeof(String), typeof(Int32?)); expr.VerifyEval(expectedValue); }
private void TestFromDouble(Double?x, Int32?expectedValue) { _Double column1 = x; _Int32 expr = (_Int32)column1; var dbExpr = (DbCastExpression)expr.DbExpression; dbExpr.Verify(column1, typeof(Double?), typeof(Int32?)); expr.VerifyEval(expectedValue); }
private void TestFromInt16(Int16?x, Int32?expectedValue) { _Int16 column1 = x; _Int32 expr = column1; var dbExpr = (DbCastExpression)expr.DbExpression; dbExpr.Verify(column1, typeof(Int16?), typeof(Int32?)); expr.VerifyEval(expectedValue); }