public void TestDecode()
        {
            byte[]     expected_result = UTF8Encoding.UTF8.GetBytes("hello world");
            string     header          = "header-part ";
            string     footer          = " footer part.";
            string     encoded         = header + Base58CheckEncoding.Encode(expected_result) + footer;
            SimplePack packer          = new SimplePack(header, footer);

            Assert.AreEqual(packer.decode(encoded),
                            expected_result);
        }
        public void TestInvalidChecksum()
        {
            byte[]     expected_result = UTF8Encoding.UTF8.GetBytes("hello world");
            string     header          = "header-part ";
            string     footer          = " footer part.";
            string     encoded         = header + Base58CheckEncoding.EncodePlain(expected_result) + footer;
            SimplePack packer          = new SimplePack(header, footer);

            try{
                packer.decode(encoded);
            }
            catch (System.FormatException) { return; }
            Assert.Fail(); // Did not catch no checksum, fail
        }