ABB.Swum.Tests.ContextBuilderTests.TestBuildMethodContext_Constructor C# (CSharp) Метод

TestBuildMethodContext_Constructor() приватный Метод

private TestBuildMethodContext_Constructor ( ) : void
Результат void
        public void TestBuildMethodContext_Constructor() {
            string testSrcML = "<constructor><name><name>CBidMarkup</name><op:operator>::</op:operator><name>CBidMarkup</name></name><parameter_list>(<param><decl><type><name>SGVData</name> <type:modifier>*</type:modifier></type> <name>p</name></decl></param>, <param><decl><type><name>ASSchedule</name> <type:modifier>*</type:modifier></type> <name>p2</name></decl></param>)</parameter_list> <block>{ }</block></constructor>";
            XElement xml = XElement.Parse(string.Format(srcMLFormat, testSrcML), LoadOptions.PreserveWhitespace);
            var formals = new FormalParameterRecord[] {new FormalParameterRecord("SGVData*", false, "p"), new FormalParameterRecord("ASSchedule*", false, "p2")};

            MethodContext mc1 = new MethodContext("", false, "CBidMarkup", formals, false, true, false);
            MethodContext mc2 = ContextBuilder.BuildMethodContext(xml.Element(SRC.Constructor));
            Assert.IsTrue(MethodContextsAreEqual(mc1, mc2));
        }