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); }
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); }