Lines Matching refs:Throws
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()
450 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
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()
561 Assert.Throws<InvalidJsonException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToDouble_Invalid()
591 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToFloat_Invalid()
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()
828 Assert.Throws<InvalidOperationException>(() => Any.Parser.ParseJson(json)); in Any_UnknownType()
835 Assert.Throws<InvalidProtocolBufferException>(() => Any.Parser.ParseJson(json)); in Any_NoTypeUrl()
870 Assert.Throws<InvalidJsonException>(() => TestAllTypes.Parser.ParseJson(json)); in DataAfterObject()
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()