public void TestFunctionCall(FunctionCallingAstNode expect, FunctionCallingAstNode actual, string traceMessage) { Assert.AreEqual(expect.Callee, actual.Callee, traceMessage); Assert.IsTrue( EqualCheckUtil.EnumerableEqual(expect.Arguments, actual.Arguments), traceMessage); }
public void TestPrototype(FunctionPrototypeAstNode expect, FunctionPrototypeAstNode actual, string traceMessage) { Assert.AreEqual(expect.Name, actual.Name, traceMessage); Assert.AreEqual(expect.ReturnType, actual.ReturnType, traceMessage); Assert.IsTrue( EqualCheckUtil.EnumerableEqual(expect.Attributes, actual.Attributes), traceMessage); Assert.IsTrue( EqualCheckUtil.EnumerableEqual(expect.Parameters, actual.Parameters), traceMessage); }