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