Lines Matching refs:AreEqual
55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
57 … Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint()
65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint()
82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
207 Assert.AreEqual(rawBytes, rawOutput.ToArray()); in WriteWholeMessage_VaryingBlockSizes()
214 Assert.AreEqual(0u, CodedOutputStream.EncodeZigZag32(0)); in EncodeZigZag32()
215 Assert.AreEqual(1u, CodedOutputStream.EncodeZigZag32(-1)); in EncodeZigZag32()
216 Assert.AreEqual(2u, CodedOutputStream.EncodeZigZag32(1)); in EncodeZigZag32()
217 Assert.AreEqual(3u, CodedOutputStream.EncodeZigZag32(-2)); in EncodeZigZag32()
218 Assert.AreEqual(0x7FFFFFFEu, CodedOutputStream.EncodeZigZag32(0x3FFFFFFF)); in EncodeZigZag32()
219 … Assert.AreEqual(0x7FFFFFFFu, CodedOutputStream.EncodeZigZag32(unchecked((int) 0xC0000000))); in EncodeZigZag32()
220 Assert.AreEqual(0xFFFFFFFEu, CodedOutputStream.EncodeZigZag32(0x7FFFFFFF)); in EncodeZigZag32()
221 … Assert.AreEqual(0xFFFFFFFFu, CodedOutputStream.EncodeZigZag32(unchecked((int) 0x80000000))); in EncodeZigZag32()
227 Assert.AreEqual(0u, CodedOutputStream.EncodeZigZag64(0)); in EncodeZigZag64()
228 Assert.AreEqual(1u, CodedOutputStream.EncodeZigZag64(-1)); in EncodeZigZag64()
229 Assert.AreEqual(2u, CodedOutputStream.EncodeZigZag64(1)); in EncodeZigZag64()
230 Assert.AreEqual(3u, CodedOutputStream.EncodeZigZag64(-2)); in EncodeZigZag64()
231 Assert.AreEqual(0x000000007FFFFFFEuL, in EncodeZigZag64()
233 Assert.AreEqual(0x000000007FFFFFFFuL, in EncodeZigZag64()
235 Assert.AreEqual(0x00000000FFFFFFFEuL, in EncodeZigZag64()
237 Assert.AreEqual(0x00000000FFFFFFFFuL, in EncodeZigZag64()
239 Assert.AreEqual(0xFFFFFFFFFFFFFFFEL, in EncodeZigZag64()
241 Assert.AreEqual(0xFFFFFFFFFFFFFFFFL, in EncodeZigZag64()
250 … Assert.AreEqual(0, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(0))); in RoundTripZigZag32()
251 … Assert.AreEqual(1, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(1))); in RoundTripZigZag32()
252 … Assert.AreEqual(-1, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(-1))); in RoundTripZigZag32()
253 … Assert.AreEqual(14927, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(14927))); in RoundTripZigZag32()
254 … Assert.AreEqual(-3612, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(-3612))); in RoundTripZigZag32()
260 … Assert.AreEqual(0, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(0))); in RoundTripZigZag64()
261 … Assert.AreEqual(1, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(1))); in RoundTripZigZag64()
262 … Assert.AreEqual(-1, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(-1))); in RoundTripZigZag64()
263 … Assert.AreEqual(14927, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(14927))); in RoundTripZigZag64()
264 … Assert.AreEqual(-3612, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(-3612))); in RoundTripZigZag64()
266 Assert.AreEqual(856912304801416L, in RoundTripZigZag64()
268 Assert.AreEqual(-75123905439571256L, in RoundTripZigZag64()
275 Assert.AreEqual(10, CodedOutputStream.ComputeInt32Size(-2)); in TestNegativeEnumNoTag()
276 Assert.AreEqual(10, CodedOutputStream.ComputeEnumSize((int) SampleEnum.NegativeValue)); in TestNegativeEnumNoTag()
282 Assert.AreEqual(0, output.SpaceLeft); in TestNegativeEnumNoTag()
283 Assert.AreEqual("FE-FF-FF-FF-FF-FF-FF-FF-FF-01", BitConverter.ToString(bytes)); in TestNegativeEnumNoTag()
299 Assert.AreEqual(1, cout.Position); in TestCodedInputOutputPosition()
301 Assert.AreEqual(3, cout.Position); in TestCodedInputOutputPosition()
304 Assert.AreEqual(4, cout.Position); in TestCodedInputOutputPosition()
306 Assert.AreEqual(115, cout.Position); in TestCodedInputOutputPosition()
309 Assert.AreEqual(116, cout.Position); in TestCodedInputOutputPosition()
311 Assert.AreEqual(120, cout.Position); in TestCodedInputOutputPosition()
320 Assert.AreEqual(1, cout.Position); in TestCodedInputOutputPosition()
322 Assert.AreEqual(3, cout.Position); in TestCodedInputOutputPosition()
325 Assert.AreEqual(4, cout.Position); in TestCodedInputOutputPosition()
327 Assert.AreEqual(125, cout.Position); in TestCodedInputOutputPosition()
330 Assert.AreEqual(126, cout.Position); in TestCodedInputOutputPosition()
332 Assert.AreEqual(130, cout.Position); in TestCodedInputOutputPosition()
338 Assert.AreEqual(0, cin.Position); in TestCodedInputOutputPosition()
341 Assert.AreEqual(1, tag >> 3); in TestCodedInputOutputPosition()
342 Assert.AreEqual(1, cin.Position); in TestCodedInputOutputPosition()
343 Assert.AreEqual(500, cin.ReadInt32()); in TestCodedInputOutputPosition()
344 Assert.AreEqual(3, cin.Position); in TestCodedInputOutputPosition()
347 Assert.AreEqual(2, tag >> 3); in TestCodedInputOutputPosition()
348 Assert.AreEqual(4, cin.Position); in TestCodedInputOutputPosition()
350 Assert.AreEqual(120, childlen); in TestCodedInputOutputPosition()
351 Assert.AreEqual(5, cin.Position); in TestCodedInputOutputPosition()
353 Assert.AreEqual(5, cin.Position); in TestCodedInputOutputPosition()
358 Assert.AreEqual(11, tag >> 3); in TestCodedInputOutputPosition()
359 Assert.AreEqual(6, cin.Position); in TestCodedInputOutputPosition()
360 Assert.AreEqual(500, cin.ReadInt32()); in TestCodedInputOutputPosition()
361 Assert.AreEqual(8, cin.Position); in TestCodedInputOutputPosition()
364 Assert.AreEqual(12, tag >> 3); in TestCodedInputOutputPosition()
365 Assert.AreEqual(9, cin.Position); in TestCodedInputOutputPosition()
367 Assert.AreEqual(110, bstr.Length); in TestCodedInputOutputPosition()
368 Assert.AreEqual((byte) 109, bstr[109]); in TestCodedInputOutputPosition()
369 Assert.AreEqual(120, cin.Position); in TestCodedInputOutputPosition()
372 Assert.AreEqual(13, tag >> 3); in TestCodedInputOutputPosition()
374 Assert.AreEqual(121, cin.Position); in TestCodedInputOutputPosition()
375 Assert.AreEqual(501, cin.ReadSFixed32()); in TestCodedInputOutputPosition()
376 Assert.AreEqual(125, cin.Position); in TestCodedInputOutputPosition()
380 Assert.AreEqual(125, cin.Position); in TestCodedInputOutputPosition()
383 Assert.AreEqual(3, tag >> 3); in TestCodedInputOutputPosition()
384 Assert.AreEqual(126, cin.Position); in TestCodedInputOutputPosition()
385 Assert.AreEqual(501, cin.ReadSFixed32()); in TestCodedInputOutputPosition()
386 Assert.AreEqual(130, cin.Position); in TestCodedInputOutputPosition()
399 Assert.AreEqual(0, memoryStream.Position); // Not flushed yet in Dispose_DisposesUnderlyingStream()
401 …Assert.AreEqual(1, memoryStream.ToArray().Length); // Flushed data from CodedOutputStream to Memor… in Dispose_DisposesUnderlyingStream()
413 Assert.AreEqual(0, memoryStream.Position); // Not flushed yet in Dispose_WithLeaveOpen()
415 … Assert.AreEqual(1, memoryStream.Position); // Flushed data from CodedOutputStream to MemoryStream in Dispose_WithLeaveOpen()