You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Test,Description("Detailed list with sub-sections")]publicvoidTestListCreation2(){// Arrangevarinput="Test list:\n\nI. Intro\n A. Part 1\n B. Part 2\n C. Part3\n\nII. Background\n A. Part 1\n B. Part 2\n C. Part3\n\nIII. Overall\n A. Part 1\n B. Part 2\n C. Part3\n\nIV. Conclusion\n A. Part 1\n B. Part 2\n C. Part3\n\nV. References\n A. Part 1\n B. Part 2\n C. Part3\n\nVI. Appendix\n A. Part 1\n B. Part 2\n C. Part3";varexpected="<p>Test list:</p>\n<ol type=\"I\">\n<li>Intro</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"2\">\n<li>Background</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"3\">\n<li>Overall</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"4\">\n<li>Conclusion</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"5\">\n<li>References</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"6\">\n<li>Appendix</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>";varpipeline=new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();// Actvarresult= Markdown.ToHtml(input, pipeline);// Assert
Assert.AreEqual(expected, result);}
List with no sub-items on item IV but sub-items on V
[Test,Description("List with no sub-itmes on IV but sub-items on V")]publicvoidTestListCreation4(){// Arrangevarinput="Test list:\n\nI. Intro\n A. Part 1\n B. Part 2\n C. Part3\n\nII. Background\n A. Part 1\n B. Part 2\n C. Part3\n\nIII. Overall\n A. Part 1\n B. Part 2\n C. Part3\n\nIV. Conclusion\n\nV. References\n A. Part 1\n B. Part 2\n C. Part3\n\nVI. Appendix\n A. Part 1\n B. Part 2\n C. Part3";varexpected="<p>Test list:</p>\n<ol type=\"I\">\n<li>Intro</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"2\">\n<li>Background</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"3\">\n<li>Overall</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"4\">\n<li><p>Conclusion</p>\n</li>\n<li><p>References</p>\n</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"6\">\n<li>Appendix</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n";varpipeline=new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();// Actvarresult= Markdown.ToHtml(input, pipeline);// Assert
Assert.AreEqual(expected, result);}
List with sub-items on IV but no sub-items on V
[Test,Description("List with sub-itmes on IV but no sub-items on V")]publicvoidTestListCreation5(){// Arrangevarinput="Test list:\n\nI. Intro\n A. Part 1\n B. Part 2\n C. Part3\n\nII. Background\n A. Part 1\n B. Part 2\n C. Part3\n\nIII. Overall\n A. Part 1\n B. Part 2\n C. Part3\n\nIV. Conclusion\n A. Part 1\n B. Part 2\n C. Part3\n\nV. References\n\nVI. Appendix\n A. Part 1\n B. Part 2\n C. Part3";varexpected="<p>Test list:</p>\n<ol type=\"I\">\n<li>Intro</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"2\">\n<li>Background</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"3\">\n<li>Overall</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n<ol type=\"I\" start=\"4\">\n<li>Conclusion</li>\n</ol>\n<ol type=\"A\">\n<li><p>Part 1</p>\n</li>\n<li><p>Part 2</p>\n</li>\n<li><p>Part3</p>\n</li>\n</ol>\n<ol type=\"I\" start=\"5\">\n<li>References</li>\n</ol>\n<ol type=\"I\" start=\"6\">\n<li>Appendix</li>\n</ol>\n<ol type=\"A\">\n<li>Part 1</li>\n<li>Part 2</li>\n<li>Part3</li>\n</ol>\n";varpipeline=new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();// Actvarresult= Markdown.ToHtml(input, pipeline);// Assert
Assert.AreEqual(expected, result);}
The text was updated successfully, but these errors were encountered:
Looks like Roman Numeral
V
does not generate if there are sub-items under the previous item,IV
.Here are tests I ran. Only 1 and 3 passed.
IV
but sub-items onV
IV
but no sub-items onV
The text was updated successfully, but these errors were encountered: