public void should_be_able_to_read_an_unsigned_long_integer(bool littleEndian, byte[] bytes, ulong expected) { List <ArraySegment <byte> > segments = new List <ArraySegment <byte> >(); segments.Add(new ArraySegment <byte>(bytes)); BufferListStream sut = new BufferListStream(); sut.Initialize(segments); // act ulong actual = sut.ReadUInt64(littleEndian); // assert Assert.AreEqual(8, bytes.Length); Assert.AreEqual(expected, actual); Assert.AreEqual(8, sut.Position); }