Home | History | Annotate | Download | only in Google.Protobuf.Test

Lines Matching refs:Throws

99             var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32());

103 exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64());
107 exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(new MemoryStream(data)));
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes());
321 Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(data65));
324 Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input));
334 Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input));
422 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag());
498 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField);
515 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField);
533 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField);
555 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField);
561 Assert.Throws<ArgumentNullException>(() => new CodedInputStream((byte[]) null));
562 Assert.Throws<ArgumentNullException>(() => new CodedInputStream(null, 0, 0));
563 Assert.Throws<ArgumentNullException>(() => new CodedInputStream((Stream) null));
564 Assert.Throws<ArgumentOutOfRangeException>(() => new CodedInputStream(new byte[10], 100, 0));
565 Assert.Throws<ArgumentOutOfRangeException>(() => new CodedInputStream(new byte[10], 5, 10));
572 Assert.Throws<ArgumentOutOfRangeException>(() => CodedInputStream.CreateWithLimits(stream, 0, 1));
573 Assert.Throws<ArgumentOutOfRangeException>(() => CodedInputStream.CreateWithLimits(stream, 1, 0));