public void CheckBlockHashTest() { Example.Blockchain chain = new Example.Blockchain(); BlockchainHelper helper = new BlockchainHelper(); TransactionPart alice = new TransactionPart("Alice", -3); TransactionPart bob = new TransactionPart("Bob", 3); Transaction transaction = new Transaction(alice, bob); Block newBlock = helper.CreateBlock(transaction, chain); Miner miner = new Miner(); bool result = miner.CheckBlockHash(newBlock); Assert.IsTrue(result); }