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