public void TestGenesisEncode() { Chain chain = new Chain(Genesis.CreateGenesis()); ChainSerializer serializer = new ChainSerializer(); var encrypt = serializer.Encode(chain.BlockChain); var decrypt = serializer.Decode(serializer.ConcateByteArray(encrypt)); Assert.AreEqual(((List <Block>)decrypt).Count, chain.BlockChain.Count); }