BaseNcoding.Tests.Base85Tests.PrefixPostfixTest C# (CSharp) Method

PrefixPostfixTest() private method

private PrefixPostfixTest ( string str ) : void
str string
return void
        public void PrefixPostfixTest(string str)
        {
            var converter = Converter as Base85;
            converter.PrefixPostfix = true;
            string encoded = converter.EncodeString(str);
            Assert.IsTrue(encoded.Contains(Base85.Prefix) && encoded.Contains(Base85.Postfix));
            string decoded = converter.DecodeToString(encoded);
            Assert.AreEqual(str, decoded);
            converter.PrefixPostfix = false;
        }