public void Crytonote_DecodeAddress() { var address = "48nhyWcSey31ngSEhV8j8NPm6B8PistCQJBjjDjmTvRSTWYg6iocAw131vE2JPh3ps33vgQDKLrUx3fcErusYWcMJBxpm1d"; var result = CryptonoteBindings.DecodeAddress(address); Assert.Equal(18ul, result); }
public void Cryptonote_DecodeAddress_Should_Throw_On_Null_Or_Empty_Argument() { Assert.Throws <ArgumentException>(() => CryptonoteBindings.DecodeAddress(null)); Assert.Throws <ArgumentException>(() => CryptonoteBindings.DecodeAddress("")); }