Esempio n. 1
0
        protected void AssertRead(JsonToken[] expectedToken)
        {
            Reader.Read();

            if (!expectedToken.Contains(Reader.TokenType))
                throw new Exception("Expected one of [" + String.Join(", ", expectedToken.Select(x => x.ToString())) + "] but got " + Reader.TokenType);
        }