private static string GetMessage(Token receivedToken, string[] expectedTokenTypes) { if (receivedToken == null) { throw new ArgumentNullException("receivedToken"); } if (expectedTokenTypes == null) { throw new ArgumentNullException("expectedTokenTypes"); } return(string.Format("expected: {0}, got '{1}'", string.Join(", ", expectedTokenTypes), receivedToken.GetTokenValue().Trim())); }
private static string GetMessage(Token receivedToken, string[] expectedTokenTypes) { return(string.Format("expected: {0}, got '{1}'", string.Join(", ", expectedTokenTypes), receivedToken.GetTokenValue().Trim())); }
private static string GetMessage(Token receivedToken, string[] expectedTokenTypes) { if (receivedToken == null) throw new ArgumentNullException("receivedToken"); if (expectedTokenTypes == null) throw new ArgumentNullException("expectedTokenTypes"); return string.Format("expected: {0}, got '{1}'", string.Join(", ", expectedTokenTypes), receivedToken.GetTokenValue().Trim()); }
private static string GetMessage(Token receivedToken, string[] expectedTokenTypes) { return string.Format("expected: {0}, got '{1}'", string.Join(", ", expectedTokenTypes), receivedToken.GetTokenValue().Trim()); }