Exemplo n.º 1
0
        private void TestFromString(String x, Decimal?expectedValue)
        {
            _String  column1 = x;
            _Decimal expr    = (_Decimal)column1;
            var      dbExpr  = (DbCastExpression)expr.DbExpression;

            dbExpr.Verify(column1, typeof(String), typeof(Decimal?));
            expr.VerifyEval(expectedValue);
        }
Exemplo n.º 2
0
        private void TestFromDouble(Double?x, Decimal?expectedValue)
        {
            _Double  column1 = x;
            _Decimal expr    = (_Decimal)column1;
            var      dbExpr  = (DbCastExpression)expr.DbExpression;

            dbExpr.Verify(column1, typeof(Double?), typeof(Decimal?));
            expr.VerifyEval(expectedValue);
        }