public void TestWireDecodeBlock() { var actual = NetworkEncoder.EncodeBlock(NetworkEncoder.DecodeBlock(BLOCK_1_BYTES.ToArray().ToMemoryStream())); CollectionAssert.AreEqual(BLOCK_1_BYTES.ToList(), actual.ToList()); }
public void TestWireDecodeBlock() { var actual = DataEncoder.EncodeBlock(DataEncoder.DecodeBlock(BLOCK_1_BYTES.ToArray())); CollectionAssert.AreEqual(BLOCK_1_BYTES.ToList(), actual.ToList()); }