protected static void AssertNoError(TokenList tokens) { var errorTokens = tokens.Where(token => token.Category == TokenCategory.Error).ToList(); Assert.That(errorTokens, Is.Empty, tokens.ToLines()); }