Beispiel #1
0
        public void GetMaxByteCountTest()
        {
            var alphabet      = BaseNAlphabet.Base64UrlAlphabet;
            var baseNEncoding = new BaseNEncoding(alphabet, "name");
            var expected      = alphabet.EncodingBlockSize * 5;
            var actual        = baseNEncoding.GetMaxByteCount(alphabet.DecodingBlockSize * 5);

            Assert.Equal(expected, actual);
        }