Lines Matching refs:JsonToken

43             AssertTokens("{}", JsonToken.StartObject, JsonToken.EndObject);  in EmptyObjectValue()
49 AssertTokens("[]", JsonToken.StartArray, JsonToken.EndArray); in EmptyArrayValue()
68 AssertTokensNoReplacement("\"" + json + "\"", JsonToken.Value(expectedValue)); in StringValue()
80 AssertTokens("'\\ud800\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
81 AssertTokens("'\ud800\\udc00'", JsonToken.Value(expected)); in MixedSurrogatePairs()
91 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
93 Assert.AreEqual(JsonToken.Name("foo"), tokenizer.Next()); in ObjectDepth()
95 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth()
97 Assert.AreEqual(JsonToken.Name("x"), tokenizer.Next()); in ObjectDepth()
99 Assert.AreEqual(JsonToken.Value(1), tokenizer.Next()); in ObjectDepth()
101 Assert.AreEqual(JsonToken.Name("y"), tokenizer.Next()); in ObjectDepth()
103 Assert.AreEqual(JsonToken.StartArray, tokenizer.Next()); in ObjectDepth()
105 Assert.AreEqual(JsonToken.Value(0), tokenizer.Next()); in ObjectDepth()
107 Assert.AreEqual(JsonToken.EndArray, tokenizer.Next()); in ObjectDepth()
109 Assert.AreEqual(JsonToken.EndObject, tokenizer.Next()); in ObjectDepth()
111 Assert.AreEqual(JsonToken.EndObject, tokenizer.Next()); in ObjectDepth()
113 Assert.AreEqual(JsonToken.EndDocument, tokenizer.Next()); in ObjectDepth()
191 AssertTokens(json, JsonToken.Value(expectedValue)); in NumberValue()
222 AssertTokens("null", JsonToken.Null); in NullValue()
228 AssertTokens("true", JsonToken.True); in TrueValue()
234 AssertTokens("false", JsonToken.False); in FalseValue()
241JsonToken.StartObject, JsonToken.Name("x"), JsonToken.Value("y"), JsonToken.EndObject); in SimpleObject()
289 JsonToken.StartArray, in ArrayMixedType()
290 JsonToken.Value(1), in ArrayMixedType()
291 JsonToken.Value("foo"), in ArrayMixedType()
292 JsonToken.Null, in ArrayMixedType()
293 JsonToken.False, in ArrayMixedType()
294 JsonToken.True, in ArrayMixedType()
295 JsonToken.StartArray, in ArrayMixedType()
296 JsonToken.Value(2), in ArrayMixedType()
297 JsonToken.EndArray, in ArrayMixedType()
298 JsonToken.StartObject, in ArrayMixedType()
299 JsonToken.Name("x"), in ArrayMixedType()
300 JsonToken.Value("y"), in ArrayMixedType()
301 JsonToken.EndObject, in ArrayMixedType()
302 JsonToken.EndArray); in ArrayMixedType()
310 JsonToken.StartObject, in ObjectMixedType()
311 JsonToken.Name("a"), in ObjectMixedType()
312 JsonToken.Value(1), in ObjectMixedType()
313 JsonToken.Name("b"), in ObjectMixedType()
314 JsonToken.Value("bar"), in ObjectMixedType()
315 JsonToken.Name("c"), in ObjectMixedType()
316 JsonToken.Null, in ObjectMixedType()
317 JsonToken.Name("d"), in ObjectMixedType()
318 JsonToken.False, in ObjectMixedType()
319 JsonToken.Name("e"), in ObjectMixedType()
320 JsonToken.True, in ObjectMixedType()
321 JsonToken.Name("f"), in ObjectMixedType()
322 JsonToken.StartArray, in ObjectMixedType()
323 JsonToken.Value(2), in ObjectMixedType()
324 JsonToken.EndArray, in ObjectMixedType()
325 JsonToken.Name("g"), in ObjectMixedType()
326 JsonToken.StartObject, in ObjectMixedType()
327 JsonToken.Name("x"), in ObjectMixedType()
328 JsonToken.Value("y"), in ObjectMixedType()
329 JsonToken.EndObject, in ObjectMixedType()
330 JsonToken.EndObject); in ObjectMixedType()
337 Assert.AreEqual(JsonToken.Null, tokenizer.Next()); in NextAfterEndDocumentThrows()
338 Assert.AreEqual(JsonToken.EndDocument, tokenizer.Next()); in NextAfterEndDocumentThrows()
346 Assert.AreEqual(JsonToken.Null, tokenizer.Next()); in CanPushBackEndDocument()
347 Assert.AreEqual(JsonToken.EndDocument, tokenizer.Next()); in CanPushBackEndDocument()
348 tokenizer.PushBack(JsonToken.EndDocument); in CanPushBackEndDocument()
349 Assert.AreEqual(JsonToken.EndDocument, tokenizer.Next()); in CanPushBackEndDocument()
363 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in SkipValue()
376 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens()
388 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement()
395 if (actualToken == JsonToken.EndDocument) in AssertTokensNoReplacement()
402 if (finalToken != JsonToken.EndDocument) in AssertTokensNoReplacement()
408 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter()
415 if (actualToken == JsonToken.EndDocument) in AssertThrowsAfter()