Example #1
0
    public void Crytonote_DecodeAddress()
    {
        var address = "48nhyWcSey31ngSEhV8j8NPm6B8PistCQJBjjDjmTvRSTWYg6iocAw131vE2JPh3ps33vgQDKLrUx3fcErusYWcMJBxpm1d";
        var result  = CryptonoteBindings.DecodeAddress(address);

        Assert.Equal(18ul, result);
    }
Example #2
0
 public void Cryptonote_DecodeAddress_Should_Throw_On_Null_Or_Empty_Argument()
 {
     Assert.Throws <ArgumentException>(() => CryptonoteBindings.DecodeAddress(null));
     Assert.Throws <ArgumentException>(() => CryptonoteBindings.DecodeAddress(""));
 }