Beispiel #1
0
        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()));
        }
Beispiel #2
0
 private static string GetMessage(Token receivedToken, string[] expectedTokenTypes)
 {
     return(string.Format("expected: {0}, got '{1}'",
                          string.Join(", ", expectedTokenTypes),
                          receivedToken.GetTokenValue().Trim()));
 }
Beispiel #3
0
        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());
        }
Beispiel #4
0
 private static string GetMessage(Token receivedToken, string[] expectedTokenTypes)
 {
     return string.Format("expected: {0}, got '{1}'",
         string.Join(", ", expectedTokenTypes),
         receivedToken.GetTokenValue().Trim());
 }