public void Preformatted() { // Whitespace around " Line 2 " is delibrate, to test extra whitespace removal at end of lines only. var s = XmlDocSplitter.Split(s_indent4, 40, TrivList(XmlDoc.SummaryPreFormatted(new[] { "Line 1", " Line 2 " }))).ToFullString(); Assert.Equal($" /// <summary>{s_nl} /// Line 1{s_nl} /// Line 2{s_nl} /// </summary>{s_nl}", s); }
public void MultiLine() { var s = XmlDocSplitter.Split(s_indent4, 40, TrivList(XmlDoc.Summary("A slightly longer line to go over 40 chars"))).ToFullString(); Assert.Equal($" /// <summary>{s_nl} /// A slightly longer line to go{s_nl} /// over 40 chars{s_nl} /// </summary>{s_nl}", s); }
public void SingleLine() { var s = XmlDocSplitter.Split(s_indent4, 40, TrivList(XmlDoc.Summary("Short line"))).ToFullString(); Assert.Equal($" /// <summary>Short line</summary>{s_nl}", s); }