예제 #1
0
        public void TestExampleTree()
        {
            var left = SyntaxDiff.Examples.ConflictingLeftTree;
            var bas = SyntaxDiff.Examples.ConflictingBaseTree;
            var right = SyntaxDiff.Examples.ConflictingRightTree;

            var diff = new SyntaxDiff.SmartDiff<SyntaxNode>(new SyntaxNodeSmartDiff());

            var merge = diff.MergeCodeLines(left, bas, right);

            Console.WriteLine(merge);
        }
예제 #2
0
        public void TestExampleTreeMerge()
        {
            var left = SyntaxDiff.Examples.leftTree;
            var bas = SyntaxDiff.Examples.baseTree;
            var right = SyntaxDiff.Examples.rightTree;

            var diff = new SyntaxDiff.SmartDiff<SyntaxNode>(new SyntaxNodeSmartDiff())
                ;

            var merge = diff.MergeCodeLines(left, bas, right);

            Console.WriteLine(merge);
            //merge.ForEach(Console.WriteLine);
        }