public void TestMinerBlockBaseMine() { mb.SetDifficulty(1); mb.Mine(b1); int nonce = mb.GetBlockchain().GetNonce(); // Assert the nonce: Assert.AreEqual(2, nonce); // Is the nonce set on the block? Assert.AreEqual(b1.GetNonce(), nonce); // Check the hash's starting 0: EncryptionBlock e = new EncryptionBlock(); String hash = e.Encrypt(b1); //Assert.AreEqual("06c24c8fe5e39f038a3570e562fc279e37af97d3", hash); }