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