Lines Matching refs:Throws

99 …      var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32());  in AssertReadVarintFailure()
103 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(data65)); in MaliciousRecursion()
324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
334 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
422 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag()); in Tag0Throws()
498 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in SkipGroup_WrongEndGroupTag()
515 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RogueEndGroupTag()
533 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in EndOfStreamReachedWhileSkippingGroup()
555 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RecursionLimitAppliedWhileSkippingGroup()
561 Assert.Throws<ArgumentNullException>(() => new CodedInputStream((byte[]) null)); in Construction_Invalid()
562 Assert.Throws<ArgumentNullException>(() => new CodedInputStream(null, 0, 0)); in Construction_Invalid()
563 Assert.Throws<ArgumentNullException>(() => new CodedInputStream((Stream) null)); in Construction_Invalid()
564 … Assert.Throws<ArgumentOutOfRangeException>(() => new CodedInputStream(new byte[10], 100, 0)); in Construction_Invalid()
565 … Assert.Throws<ArgumentOutOfRangeException>(() => new CodedInputStream(new byte[10], 5, 10)); in Construction_Invalid()
572 … Assert.Throws<ArgumentOutOfRangeException>(() => CodedInputStream.CreateWithLimits(stream, 0, 1)); in CreateWithLimits_InvalidLimits()
573 … Assert.Throws<ArgumentOutOfRangeException>(() => CodedInputStream.CreateWithLimits(stream, 1, 0)); in CreateWithLimits_InvalidLimits()