public void Encode()
        {
            foreach (var objectse in UTF7EncodingEncodeTests.Encode_Basic_TestData())
            {
                string source   = (string)objectse[0];
                int    index    = (int)objectse[1];
                int    count    = (int)objectse[2];
                byte[] expected = (byte[])objectse[3];

                EncodingHelpers.Encode(new UTF7Encoding(true), source, index, count, expected);
                EncodingHelpers.Encode(new UTF7Encoding(false), source, index, count, expected);
            }
        }
        public void EncodeAdvanced()
        {
            foreach (var objectse in UTF7EncodingEncodeTests.Encode_Advanced_TestData())
            {
                bool   allowOptionals = (bool)objectse[0];
                string source         = (string)objectse[1];
                int    index          = (int)objectse[2];
                int    count          = (int)objectse[3];
                byte[] expected       = (byte[])objectse[4];

                EncodingHelpers.Encode(new UTF7Encoding(allowOptionals), source, index, count, expected);
            }
        }