public void DecodingTest() { //Arrange var bytes = new byte[] { 0x82, 0x88, 0x83, 0x80, 0x85, 0x85, 0x82, 0x82, 0x8A, 0x85 }; List <Posting> expected = new List <Posting>(); expected.Add(new Posting(8, new List <int>() { 0, 5, 10 })); expected.Add(new Posting(10, new List <int>() { 10, 15 })); //Act var encoder = new PostingListEncoderDecoder(); var actual = encoder.Decoding(bytes); //Assert actual.Should().BeEquivalentTo(expected); }