Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }