Lines Matching refs:InvalidProtocolBufferException
71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
195 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
211 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
267 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
288 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
311 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
332 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
385 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
415 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
442 [TestCase("1.5", typeof(InvalidProtocolBufferException))]
444 [TestCase("1e10", typeof(InvalidProtocolBufferException))]
445 [TestCase("2147483648", typeof(InvalidProtocolBufferException))]
446 [TestCase("-2147483649", typeof(InvalidProtocolBufferException))]
471 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToUInt32_Invalid()
499 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToInt64_Invalid()
522 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToUInt64_Invalid()
581 [TestCase("3.402824e38", typeof(InvalidProtocolBufferException))]
582 [TestCase("-3.402824e38", typeof(InvalidProtocolBufferException))]
667 Assert.Throws<InvalidProtocolBufferException>(() => Timestamp.Parser.ParseJson(json)); in Timestamp_Invalid()
771 Assert.Throws<InvalidProtocolBufferException>(() => Duration.Parser.ParseJson(json)); in Duration_Invalid()
796 Assert.Throws<InvalidProtocolBufferException>(() => FieldMask.Parser.ParseJson(json)); in FieldMask_Invalid()
835 Assert.Throws<InvalidProtocolBufferException>(() => Any.Parser.ParseJson(json)); in Any_NoTypeUrl()
884 … Assert.Throws<InvalidProtocolBufferException>(() => parser64.Parse<TestRecursiveMessage>(data65)); in MaliciousRecursion()
887 … Assert.Throws<InvalidProtocolBufferException>(() => parser63.Parse<TestRecursiveMessage>(data64)); in MaliciousRecursion()
896 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in Bytes_InvalidBase64()
916 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in Enum_Invalid()
923 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in OneofDuplicate_Invalid()