public void Decode()
        {
            Base64Encoding e = new Base64Encoding();

            i = "dGVzdA==";
            o = e.DecodeAsString(i);
            Assert.Equal(o, "test");

            i = "dGVzdDA=";
            o = e.DecodeAsString(i);
            Assert.Equal(o, "test0");

            i = "dGVzdDAw";
            o = e.DecodeAsString(i);
            Assert.Equal(o, "test00");

            i = "dGVzdDAx";
            o = e.DecodeAsString(i);
            Assert.Equal(o, "test01");

            i = "dGVzdDAwMA==";
            o = e.DecodeAsString(i);
            Assert.Equal(o, "test000");

            byte[] bytes = null;

            bytes = e.Decode("AA==");
            Assert.Equal(bytes, new byte[] { 0, });

            bytes = e.Decode("AAA=");
            Assert.Equal(bytes, new byte[] { 0, 0, });

            bytes = e.Decode("AAAA");
            Assert.Equal(bytes, new byte[] { 0, 0, 0, });


            return;
        }