Esempio n. 1
0
        private void TestFromBoolean(_Boolean x, Int16?expectedValue)
        {
            _Int16 expr   = (_Int16)x;
            var    dbExpr = (DbCastExpression)expr.DbExpression;

            dbExpr.Verify(x, typeof(bool?), typeof(Int16?));
            expr.VerifyEval(expectedValue);
        }
Esempio n. 2
0
        private void TestFromString(String x, Int16?expectedValue)
        {
            _String column1 = x;
            _Int16  expr    = (_Int16)column1;
            var     dbExpr  = (DbCastExpression)expr.DbExpression;

            dbExpr.Verify(column1, typeof(String), typeof(Int16?));
            expr.VerifyEval(expectedValue);
        }
Esempio n. 3
0
        private void TestFromDouble(Double?x, Int16?expectedValue)
        {
            _Double column1 = x;
            _Int16  expr    = (_Int16)column1;
            var     dbExpr  = (DbCastExpression)expr.DbExpression;

            dbExpr.Verify(column1, typeof(Double?), typeof(Int16?));
            expr.VerifyEval(expectedValue);
        }
Esempio n. 4
0
        private void TestFromByte(byte?x, Int16?expectedValue)
        {
            _Byte  column1 = x;
            _Int16 expr    = column1;
            var    dbExpr  = (DbCastExpression)expr.DbExpression;

            dbExpr.Verify(column1, typeof(byte?), typeof(Int16?));
            expr.VerifyEval(expectedValue);
        }