public void TestWireEncodeBlockHeader() { var actual = NetworkEncoder.EncodeBlockHeader(BLOCK_HEADER_1); CollectionAssert.AreEqual(BLOCK_HEADER_1_BYTES.ToList(), actual.ToList()); }
public void TestWireDecodeBlockHeader() { var actual = NetworkEncoder.EncodeBlockHeader(NetworkEncoder.DecodeBlockHeader(BLOCK_HEADER_1_BYTES.ToArray().ToMemoryStream())); CollectionAssert.AreEqual(BLOCK_HEADER_1_BYTES.ToList(), actual.ToList()); }
public void TestWireDecodeBlockHeader() { var actual = DataEncoder.EncodeBlockHeader(DataEncoder.DecodeBlockHeader(BLOCK_HEADER_1_BYTES.ToArray())); CollectionAssert.AreEqual(BLOCK_HEADER_1_BYTES.ToList(), actual.ToList()); }