We'll start with the object that Ward created at WyCash, multi-currency money (refer to the Introduction). Suppose we have a report like this:
To make a multi-currency report, we need to add currencies:
|IBM||1000||25 USD||25000 USD|
|Novartis||400||150 CHF||60000 CHF|
We also need to specify exchange rates:
What behavior will we need to produce the revised report? Put another way, what set of tests, when passed, will demonstrate the presence of code we are confident will compute the report correctly?
We need to be able to add amounts ...