private static void RunTest(string input, string output) { Tree inputTree = Tree.ValueOf(input); QPTreeTransformer qp = new QPTreeTransformer(); Tree outputTree = qp.QPtransform(inputTree); NUnit.Framework.Assert.AreEqual(output, outputTree.ToString()); }
private static void OutputResults(string input, string output) { Tree inputTree = Tree.ValueOf(input); System.Console.Error.WriteLine(inputTree); QPTreeTransformer qp = new QPTreeTransformer(); Tree outputTree = qp.QPtransform(inputTree); System.Console.Error.WriteLine(outputTree); System.Console.Error.WriteLine(output); }