public void BlockMinerTest() { // create 30 transactions, that should result in 3 blocks in the chain. SimpleBlockchain <Transaction> chain = new SimpleBlockchain <Transaction>(); // Respresents a proof of work miner // Creates Miner <Transaction> miner = new Miner <Transaction>(chain); // This represents transactions being created by a network for (int i = 0; i < 30; i++) { miner.mine(new Transaction("" + i)); } Console.WriteLine("Number of Blocks Mined = " + chain.getChain().Count); Assert.IsTrue(chain.getChain().Count == 3); }