public void TestListsCanHaveBulletPoints() { var list = new BulletedList( "Apple", "Orange", "Banana", "Kiwi", "Plum"); list.AssertOutputEquals( " * Apple\r\n" + " * Orange\r\n" + " * Banana\r\n" + " * Kiwi\r\n" + " * Plum\r\n" , "<ul>\n" + "<li>Apple</li>\n" + "<li>Orange</li>\n" + "<li>Banana</li>\n" + "<li>Kiwi</li>\n" + "<li>Plum</li>\n" + "</ul>\n"); }
public void TestSpecialMarkDownCharactersAreAutomaticallyEncoded() { var list = new BulletedList( @"The underscore (_), backtick (`), asterisk (*) and backslash (\) have special meanings in Unicode", "These will be encoded by default so there are no surprises caused by your automatically generated Markdown containing special characters", "For example, variable_names_with_underscores and formula x = 1*2**3**4"); list.WriteToTrace(); }
public void TestListCanHaveNoItems() { var list = new BulletedList(); list.WriteToTrace(); }