public void Should_push_multiline_block_comments_on_to_their_own_line() { //This is specifically to preserve valid xml. It also is a bit of a shitty style to start a block comment on a line of code and carry it on the next line. var input = @" var i = 6; /* Start of comment on line 1 * and then run on to the next line*/"; var expected = @" var i = 6; <div class=""rem""> /* Start of comment on line 1 * and then run on to the next line*/ </div>"; var actual = new StringAndCommentParser().Parse(input); Assert.AreEqual(expected, actual); }
public void Should_wrap_block_string_literals(string input, string expected) { var actual = new StringAndCommentParser().Parse(input); Assert.AreEqual(expected, actual); }