public void getResultFromTable_LastRowToShort_ReturnsRowContent() { contentList2 = new List<string> (); contentList = new List<List<string>> (); contentList2.Add ("cell21"); contentList.Add (contentList1); contentList.Add (contentList2); SharpMarkdownWriterLib.SharpMarkdownWriterTable writerTable = new SharpMarkdownWriterLib.SharpMarkdownWriterTable(headerList, contentList); string result = writerTable.BuildContent(contentList); StringAssert.AreEqualIgnoringCase ("|cell11|cell12|cell13|\n|cell21| | |\n", result); }
public void getResultFromTable_GenerateContent_ReturnsRowContent() { SharpMarkdownWriterLib.SharpMarkdownWriterTable writerTable = new SharpMarkdownWriterLib.SharpMarkdownWriterTable(headerList, contentList); string result = writerTable.BuildContent(contentList); StringAssert.AreEqualIgnoringCase ("|cell11|cell12|cell13|\n|cell21|cell22|cell23|\n", result); }