Lines Matching refs:InvalidProtocolBufferException
71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
291 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
314 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
335 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
388 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
418 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
445 [TestCase("1.5", typeof(InvalidProtocolBufferException))]
447 [TestCase("1e10", typeof(InvalidProtocolBufferException))]
448 [TestCase("2147483648", typeof(InvalidProtocolBufferException))]
449 [TestCase("-2147483649", typeof(InvalidProtocolBufferException))]
474 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToUInt32_Invalid()
502 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToInt64_Invalid()
525 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToUInt64_Invalid()
584 [TestCase("3.402824e38", typeof(InvalidProtocolBufferException))]
585 [TestCase("-3.402824e38", typeof(InvalidProtocolBufferException))]
670 Assert.Throws<InvalidProtocolBufferException>(() => Timestamp.Parser.ParseJson(json)); in Timestamp_Invalid()
790 Assert.Throws<InvalidProtocolBufferException>(() => Duration.Parser.ParseJson(json)); in Duration_Invalid()
815 Assert.Throws<InvalidProtocolBufferException>(() => FieldMask.Parser.ParseJson(json)); in FieldMask_Invalid()
854 Assert.Throws<InvalidProtocolBufferException>(() => Any.Parser.ParseJson(json)); in Any_NoTypeUrl()
903 … Assert.Throws<InvalidProtocolBufferException>(() => parser64.Parse<TestRecursiveMessage>(data65)); in MaliciousRecursion()
906 … Assert.Throws<InvalidProtocolBufferException>(() => parser63.Parse<TestRecursiveMessage>(data64)); in MaliciousRecursion()
915 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in Bytes_InvalidBase64()
935 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in Enum_Invalid()
942 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in OneofDuplicate_Invalid()
949 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in UnknownField_NotIgnored()