The money example of the book "Test-Driven development by Example" by Kent Beck
- $5 + 10 CHF = $10 if rate is 2:1
- $5 + $5 = $10
- Sum.plus
- Expression.times
- Return Money from $5 + $5
- Bank.reduce(Money)
- Reduce Money with conversion
- Reduce(Bank, String)
- $5 * 2 = $10
- Make "amount" private
- Dollar side-effects?
- Money rounding?
- equals()
- hashCode()
- Equal null
- Equal object
- 5 CHF * 2 = 10 CHF
- Dollar/Franc duplication
- Common equals
- Common times.
- Compare Francs with Dollars
- Currency?
- Delete testFrancMultiplication?