Home
last modified time | relevance | path

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

/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs376 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens() argument
378 AssertTokensNoReplacement(json.Replace('\'', '"'), expectedTokens); in AssertTokens()
388 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement() argument
392 for (int i = 0; i < expectedTokens.Length; i++) in AssertTokensNoReplacement()
397 Assert.Fail("Expected {0} but reached end of token stream", expectedTokens[i]); in AssertTokensNoReplacement()
399 Assert.AreEqual(expectedTokens[i], actualToken); in AssertTokensNoReplacement()
408 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter() argument
412 for (int i = 0; i < expectedTokens.Length; i++) in AssertThrowsAfter()
417 Assert.Fail("Expected {0} but reached end of document", expectedTokens[i]); in AssertThrowsAfter()
419 Assert.AreEqual(expectedTokens[i], actualToken); in AssertThrowsAfter()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/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()