Lines Matching refs:Throws
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()
453 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
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()
564 Assert.Throws<InvalidJsonException>(() => TestAllTypes.Parser.ParseJson(json)); in NumberToDouble_Invalid()
594 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToFloat_Invalid()
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()
847 Assert.Throws<InvalidOperationException>(() => Any.Parser.ParseJson(json)); in Any_UnknownType()
854 Assert.Throws<InvalidProtocolBufferException>(() => Any.Parser.ParseJson(json)); in Any_NoTypeUrl()
889 Assert.Throws<InvalidJsonException>(() => TestAllTypes.Parser.ParseJson(json)); in DataAfterObject()
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()