Exemplo n.º 1
0
 public static void ToBase58String_ThrowsArgumentOutOfRangeException_ForNegativeInt64()
 => Assert.Throws <ArgumentOutOfRangeException>(() => Int64Encoder.ToBase58String(-1));
Exemplo n.º 2
0
 public static void ToBase58String_TestSuite(string expectedValue, long value)
 => Assert.Equal(expectedValue, Int64Encoder.ToBase58String(value));
Exemplo n.º 3
0
        public static void RoundTrippingBase58Encoding_IsInvariant()
        {
            long value = 3471391110;

            Assert.Equal(value, Int64Encoder.FromBase58String(Int64Encoder.ToBase58String(value)));
        }