예제 #1
0
        public void ToStringTest()
        {
            var expected = "eg==";
            var data     = new byte[] { 122 };

            var actual = Base64UrlConvert.ToString(data);

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void ToStringPartialTest()
        {
            var expected = "eg==";
            var data     = new byte[] { 255, 122, 255 };

            var actual = Base64UrlConvert.ToString(data, 1, 1);

            Assert.Equal(expected, actual);
        }