public void TestBuildMethodContext_FunctionNoParams() {
string testSrcML = "<function><type><name>int</name></type> <name>GetZero</name><parameter_list>()</parameter_list> <block>{ <return>return <expr><lit:literal type=\"number\">0</lit:literal></expr>;</return> }</block></function>";
XElement xml = XElement.Parse(string.Format(srcMLFormat, testSrcML), LoadOptions.PreserveWhitespace);
MethodContext mc1 = new MethodContext("int", true, "", new List<FormalParameterRecord>(), false, false, false);
MethodContext mc2 = ContextBuilder.BuildMethodContext(xml.Element(SRC.Function));
Assert.IsTrue(MethodContextsAreEqual(mc1, mc2));
}