예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }