public void SatoshisProperty_FractionalValue_ValueIsRoundedToWholeSatoshis() { var sut = new SatoshiUnit(0); sut.Satoshis = 1.6m; Assert.AreEqual(2m, sut.Satoshis); }
public void Constructor_FractionalValue_ValueIsRoundedToWholeSatoshis() { var sut = new SatoshiUnit(1.6m); Assert.AreEqual(2m, sut.Satoshis); }
public void FromBitcoins() { var sut = SatoshiUnit.FromBitcoins(1); Assert.AreEqual(100000000, sut.Satoshis); }
public void FromFinnies() { var sut = SatoshiUnit.FromFinnies(1); Assert.AreEqual(10, sut.Satoshis); }
public void FromSatoshis() { var sut = SatoshiUnit.FromSatoshis(1); Assert.AreEqual(1, sut.Satoshis); }