public void TestBitCoinSerialization()
{
// We have to be able to re-serialize everything exactly as we found it for hashing to work. This test also
// proves that transaction serialization works, along with all its sub-objects like scripts and in/outpoints.
//
// NB: This tests the BITCOIN proprietary serialization protocol. A different test checks Java serialization
// of transactions.
var block = new Block(_params, _blockBytes);
Assert.IsTrue(_blockBytes.SequenceEqual(block.BitcoinSerialize()));
}