This repository is an implementation of TDD process that uses TypeScript and Mocha to create example working Money Wallet.
Based on TDD By Example by Kent Beck
- 5 USD + 10 CHF = 10 USD (at USD:CHF=2:1)
- 5 USD + 5 USD = 10 USD
- 5 USD * 2 = 10 USD
- make
amount
private - no side effects
- what about roundings?
- compare different currencies
- add
equals()
method - equal with null value
- equals with object
- 5 CHF * 2 = 10 CHF
- multiply different currencies
- move money to factory method
- check currency