Esempio n. 1
0
        private static void VerifyReassembly(string inputString)
        {
            var expectedModel = new MemDocModel();

            expectedModel.ParseFromString(inputString, false);
            Assert.AreEqual(inputString.TrimEndAndNewlines(), expectedModel.ToString().TrimEndAndNewlines());
        }
Esempio n. 2
0
        public void MemberWith2MeaningfulBlocks()
        {
            const string kInputString = @"<signature>
sig1
sig2
</signature>
Summary for first sigs
<signature>
sig3
sig4
</signature>
Summary for second sigs
";
            var          derivedModel = new MemDocModel();

            derivedModel.ParseFromString(kInputString, true);
            Assert.AreEqual(2, derivedModel.SubSections.Count);
            Assert.AreEqual("Summary for first sigs", derivedModel.SubSections[0].Summary);
            Assert.AreEqual("Summary for second sigs", derivedModel.SubSections[1].Summary);
        }