Beispiel #1
0
        public void ToBase58NewLine()
        {
            var result = Base58Convert.ToBase58String(Encoding.UTF8.GetBytes(new string('a', 1000)),
                                                      Base58FormattingOptions.InsertLineBreaks);

            var test = result.Split(Environment.NewLine);

            foreach (var item in test)
            {
                Assert.True(item.Length <= 76);
            }
        }
Beispiel #2
0
 public void ToBase58(string utf8, string base58)
 {
     Assert.Equal(base58, Base58Convert.ToBase58String(Encoding.UTF8.GetBytes(utf8)));
 }