public void GetCoinTypeWithoutHdPathThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => { var account = new HdAccount(); account.HdPath = null; account.GetCoinType(); }); }
public void GetCoinTypeWithEmptyHdPathThrowsArgumentException() { Assert.Throws <ArgumentException>(() => { var account = new HdAccount(); account.HdPath = string.Empty; account.GetCoinType(); }); }
public void GetCoinTypeWithInvalidHdPathThrowsFormatException() { Assert.Throws <FormatException>(() => { var account = new HdAccount(); account.HdPath = "1/"; account.GetCoinType(); }); }
public void GetCoinTypeHavingHdPathReturnsCointType() { var account = new HdAccount(); account.HdPath = "1/2/105"; int result = account.GetCoinType(); Assert.Equal(KnownCoinTypes.Stratis, result); }
public void GetCoinTypeHavingHdPathReturnsCoinType() { var account = new HdAccount(); account.HdPath = "1/2/105105"; CoinType result = account.GetCoinType(); Assert.Equal(CoinType.Strax, result); }
public void GetCoinTypeWithEmptyHdPathThrowsException() { Assert.Throws <InvalidOperationException>(() => { var account = new HdAccount(); account.HdPath = string.Empty; account.GetCoinType(); }); }
public void GetCoinTypeWithoutHdPathThrowsException() { Assert.Throws <InvalidOperationException>(() => { var account = new HdAccount(); account.HdPath = null; account.GetCoinType(); }); }