public void codeStartsWithText_should_return_true_when_it_is_text() { // Given var code = new StringBuilder(@"My item" + @"\item My other item" + @"\chapter{Chapter 2}" + @"\section{Section 2}" + @"This is some other text" + @"\end{document}"); // When var result = SUT.CodeStartsWithText(code); // Then Assert.IsTrue(result); }
private bool codeCantBeProcessed(StringBuilder code, LaTeXElementParser parser) { return(parser == null && !_textParser.CodeStartsWithText(code)); }