public void MultiLineString() { var data = new Dictionary <string, string[]> { { "\"multi line", new[] { "0", "\"multi line\"", "+", "\n" } }, { "string\"", new[] { "0", "\"string\"", "\n" } } }; foreach (KeyValuePair <string, string[]> InputOutput in data) { Assert.AreEqual(InputOutput.Value, lexer.Lex(InputOutput.Key)); } }
public void delimiterTouchingNonDelimiter() { Assert.AreEqual(new string[] { "0", ")", "and", "is", ")", "\n" }, lexer.Lex(")and is)")); }