Home
last modified time | relevance | path

Searched refs:expectedTokens (Results 1 – 1 of 1) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs360 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens() argument
362 AssertTokensNoReplacement(json.Replace('\'', '"'), expectedTokens); in AssertTokens()
372 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement() argument
376 for (int i = 0; i < expectedTokens.Length; i++) in AssertTokensNoReplacement()
381 Assert.Fail("Expected {0} but reached end of token stream", expectedTokens[i]); in AssertTokensNoReplacement()
383 Assert.AreEqual(expectedTokens[i], actualToken); in AssertTokensNoReplacement()
392 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter() argument
396 for (int i = 0; i < expectedTokens.Length; i++) in AssertThrowsAfter()
401 Assert.Fail("Expected {0} but reached end of document", expectedTokens[i]); in AssertThrowsAfter()
403 Assert.AreEqual(expectedTokens[i], actualToken); in AssertThrowsAfter()