예제 #1
0
 public static void FromBase58String_ThrowsArgumentNullException_ForNullString()
 => Assert.Throws <ArgumentNullException>(() => Int64Encoder.FromBase58String(null));
예제 #2
0
 public static void FromBase58String_ReturnsExpectedString(string value, long expectedValue)
 => Assert.Equal(expectedValue, Int64Encoder.FromBase58String(value));
예제 #3
0
        public static void RoundTrippingBase58Encoding_IsInvariant()
        {
            long value = 3471391110;

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