Exemple #1
0
        public void TestCombineSameStatement()
        {
            var inline1 = new StatementInlineBlock();
            var vdecl1  = DeclarableParameter.CreateDeclarableParameterExpression(typeof(int));

            inline1.Add(vdecl1);
            var s1 = new CombineSameStatement(vdecl1);

            inline1.Add(s1);

            var result = inline1.CombineAndMark(s1, s1.Parent as IBookingStatementBlock, false);

            Assert.IsNull(result, "combine should fail");
        }
        public void TestCombineSameStatement()
        {
            var inline1 = new StatementInlineBlock();
            var vdecl1 = DeclarableParameter.CreateDeclarableParameterExpression(typeof(int));
            inline1.Add(vdecl1);
            var s1 = new CombineSameStatement(vdecl1);
            inline1.Add(s1);

            var result = inline1.CombineAndMark(s1, s1.Parent as IBookingStatementBlock, false);
            Assert.IsNull(result, "combine should fail");
        }