Example #1
0
        public void TestWireDecodeBlock()
        {
            var actual = NetworkEncoder.EncodeBlock(NetworkEncoder.DecodeBlock(BLOCK_1_BYTES.ToArray().ToMemoryStream()));

            CollectionAssert.AreEqual(BLOCK_1_BYTES.ToList(), actual.ToList());
        }
Example #2
0
        public void TestWireDecodeBlock()
        {
            var actual = DataEncoder.EncodeBlock(DataEncoder.DecodeBlock(BLOCK_1_BYTES.ToArray()));

            CollectionAssert.AreEqual(BLOCK_1_BYTES.ToList(), actual.ToList());
        }