Lines Matching refs:AreEqual

63             Assert.AreEqual((uint) value, input.ReadRawVarint32());  in AssertReadVarint()
66 Assert.AreEqual(value, input.ReadRawVarint64()); in AssertReadVarint()
73 Assert.AreEqual((uint) value, input.ReadRawVarint32()); in AssertReadVarint()
76 Assert.AreEqual(value, input.ReadRawVarint64()); in AssertReadVarint()
87 Assert.AreEqual((uint) value, CodedInputStream.ReadRawVarint32(memoryStream)); in AssertReadVarint()
88 Assert.AreEqual(data.Length, memoryStream.Position); in AssertReadVarint()
100 Assert.AreEqual(expected.Message, exception.Message); in AssertReadVarintFailure()
104 Assert.AreEqual(expected.Message, exception.Message); in AssertReadVarintFailure()
108 Assert.AreEqual(expected.Message, exception.Message); in AssertReadVarintFailure()
156 Assert.AreEqual(value, input.ReadRawLittleEndian32()); in AssertReadLittleEndian32()
164 Assert.AreEqual(value, input.ReadRawLittleEndian32()); in AssertReadLittleEndian32()
176 Assert.AreEqual(value, input.ReadRawLittleEndian64()); in AssertReadLittleEndian64()
184 Assert.AreEqual(value, input.ReadRawLittleEndian64()); in AssertReadLittleEndian64()
204 Assert.AreEqual(0, CodedInputStream.DecodeZigZag32(0)); in DecodeZigZag32()
205 Assert.AreEqual(-1, CodedInputStream.DecodeZigZag32(1)); in DecodeZigZag32()
206 Assert.AreEqual(1, CodedInputStream.DecodeZigZag32(2)); in DecodeZigZag32()
207 Assert.AreEqual(-2, CodedInputStream.DecodeZigZag32(3)); in DecodeZigZag32()
208 Assert.AreEqual(0x3FFFFFFF, CodedInputStream.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32()
209 … Assert.AreEqual(unchecked((int) 0xC0000000), CodedInputStream.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32()
210 Assert.AreEqual(0x7FFFFFFF, CodedInputStream.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32()
211 … Assert.AreEqual(unchecked((int) 0x80000000), CodedInputStream.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
217 Assert.AreEqual(0, CodedInputStream.DecodeZigZag64(0)); in DecodeZigZag64()
218 Assert.AreEqual(-1, CodedInputStream.DecodeZigZag64(1)); in DecodeZigZag64()
219 Assert.AreEqual(1, CodedInputStream.DecodeZigZag64(2)); in DecodeZigZag64()
220 Assert.AreEqual(-2, CodedInputStream.DecodeZigZag64(3)); in DecodeZigZag64()
221 … Assert.AreEqual(0x000000003FFFFFFFL, CodedInputStream.DecodeZigZag64(0x000000007FFFFFFEL)); in DecodeZigZag64()
222 …Assert.AreEqual(unchecked((long) 0xFFFFFFFFC0000000L), CodedInputStream.DecodeZigZag64(0x000000007… in DecodeZigZag64()
223 … Assert.AreEqual(0x000000007FFFFFFFL, CodedInputStream.DecodeZigZag64(0x00000000FFFFFFFEL)); in DecodeZigZag64()
224 …Assert.AreEqual(unchecked((long) 0xFFFFFFFF80000000L), CodedInputStream.DecodeZigZag64(0x00000000F… in DecodeZigZag64()
225 … Assert.AreEqual(0x7FFFFFFFFFFFFFFFL, CodedInputStream.DecodeZigZag64(0xFFFFFFFFFFFFFFFEL)); in DecodeZigZag64()
226 …Assert.AreEqual(unchecked((long) 0x8000000000000000L), CodedInputStream.DecodeZigZag64(0xFFFFFFFFF… in DecodeZigZag64()
235 Assert.AreEqual(rawBytes.Length, message.CalculateSize()); in ReadWholeMessage_VaryingBlockSizes()
237 Assert.AreEqual(message, message2); in ReadWholeMessage_VaryingBlockSizes()
243 Assert.AreEqual(message, message2); in ReadWholeMessage_VaryingBlockSizes()
265 Assert.AreEqual(message, message2); in ReadHugeBlob()
282 Assert.AreEqual(tag, input.ReadTag()); in ReadMaliciouslyLargeBlob()
304 Assert.AreEqual(5, message.I); in AssertMessageDepth()
357 Assert.AreEqual(tag, input.ReadTag()); in ReadInvalidUtf8()
359 Assert.AreEqual('\ufffd', text[0]); in ReadInvalidUtf8()
388 Assert.AreEqual((int)SampleEnum.NegativeValue, input.ReadEnum()); in TestNegativeEnum()
409 Assert.AreEqual(1, WireFormat.GetTagFieldNumber(tag)); in TestSlowPathAvoidance()
410 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()
413 Assert.AreEqual(2, WireFormat.GetTagFieldNumber(tag)); in TestSlowPathAvoidance()
414 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()
464 … Assert.AreEqual(WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited), input.ReadTag()); in SkipGroup()
465 Assert.AreEqual("field 1", input.ReadString()); in SkipGroup()
466 Assert.AreEqual(WireFormat.MakeTag(2, WireFormat.WireType.StartGroup), input.ReadTag()); in SkipGroup()
468 … Assert.AreEqual(WireFormat.MakeTag(3, WireFormat.WireType.LengthDelimited), input.ReadTag()); in SkipGroup()
469 Assert.AreEqual("field 3", input.ReadString()); in SkipGroup()
495 … Assert.AreEqual(WireFormat.MakeTag(1, WireFormat.WireType.LengthDelimited), input.ReadTag()); in SkipGroup_WrongEndGroupTag()
496 Assert.AreEqual("field 1", input.ReadString()); in SkipGroup_WrongEndGroupTag()
497 Assert.AreEqual(WireFormat.MakeTag(2, WireFormat.WireType.StartGroup), input.ReadTag()); in SkipGroup_WrongEndGroupTag()
514 Assert.AreEqual(WireFormat.MakeTag(1, WireFormat.WireType.EndGroup), input.ReadTag()); in RogueEndGroupTag()
554 Assert.AreEqual(WireFormat.MakeTag(1, WireFormat.WireType.StartGroup), input.ReadTag()); in RecursionLimitAppliedWhileSkippingGroup()