public void TestEqualsTo() { Dollar five = new Dollar(5); Dollar anotherFive = new Dollar(5); Assert.AreEqual(true, five.EqualsTo(anotherFive)); }
public void TestEqualsToBetweenDollarAndFranc() { Dollar fiveDollar = new Dollar(5); Franc tenFranc = new Franc(10); Assert.AreEqual(true, fiveDollar.EqualsTo(tenFranc)); }
public void TestMultiplication() { Dollar five = new Dollar(5); five.Times(2); Assert.AreEqual(10, five.Amount); }
public void TestFloatAmount() { Dollar fivePointThree = new Dollar(5.3); Assert.AreEqual(5.3, fivePointThree.Amount); }
public void TestCurrency() { Dollar five = new Dollar(); Assert.AreEqual("USD", five.Currency); }