File tree Expand file tree Collapse file tree
ch17-01-tests/Money.Tests
ch17-03-decimal/Money.Tests
ch17-04-arithmetic/Money.Tests
java/ch17-04-arithmetic/src/test/java/com/thesoftwaregorilla/tdd/money Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using NUnit . Framework ;
2- using TheSoftwareGorilla . TDD . Money ;
3-
41namespace TheSoftwareGorilla . TDD . Money . Tests ;
52
3+ #region TODO List
4+
5+ #endregion
6+
67public class DollarTests
78{
89 [ SetUp ]
Original file line number Diff line number Diff line change 11namespace TheSoftwareGorilla . TDD . Money ;
22
3+
34public class Dollar
45{
56 // To be implemented
Original file line number Diff line number Diff line change 33
44namespace TheSoftwareGorilla . TDD . Money . Tests ;
55
6+ #region TODO List
7+ //TODO: $5 + 10 CHF = $10 if rate is 2:1
8+ //TODO: $5 * 2 = $10 - DONE
9+ //TODO: Make "amount" private
10+ //TODO: Dollar side-effects?
11+ //TODO: Money rounding?
12+ #endregion
13+
614public class DollarTests
715{
8- //TODO: $5 + 10 CHF = $10 if rate is 2:1
9- //TODO: $5 * 2 = $10 - DONE
10- //TODO: Make "amount" private
11- //TODO: Dollar side-effects?
12- //TODO: Money rounding?
1316
1417 [ SetUp ]
1518 public void Setup ( )
Original file line number Diff line number Diff line change 33
44namespace TheSoftwareGorilla . TDD . Money . Tests ;
55
6+
7+ #region TODO List
8+ //TODO: $5 + 10 CHF = $10 if rate is 2:1
9+ //TODO: $5 * 2 = $10 - DONE
10+ //TODO: Make "amount" private
11+ //TODO: Dollar side-effects? - DONE
12+ //TODO: Money rounding?
13+ #endregion
614public class DollarTests
715{
8- //TODO: $5 + 10 CHF = $10 if rate is 2:1
9- //TODO: $5 * 2 = $10 - DONE
10- //TODO: Make "amount" private
11- //TODO: Dollar side-effects? - DONE
12- //TODO: Money rounding?
1316
1417 [ SetUp ]
1518 public void Setup ( )
Original file line number Diff line number Diff line change 33
44namespace TheSoftwareGorilla . TDD . Money . Tests ;
55
6+
7+ #region TODO List
8+ //TODO: $5 + 10 CHF = $10 if rate is 2:1
9+ //TODO: $5 * 2 = $10 - DONE
10+ //TODO: Make "amount" private
11+ //TODO: Dollar side-effects? - DONE
12+ //TODO: Money rounding?
13+ //TODO: equals() -DONE
14+ //TODO: hashCode()
15+ //TODO: Equal null
16+ //TODO: Equal object
17+ #endregion
18+
619public class DollarTests
720{
8- //TODO: $5 + 10 CHF = $10 if rate is 2:1
9- //TODO: $5 * 2 = $10 - DONE
10- //TODO: Make "amount" private
11- //TODO: Dollar side-effects? - DONE
12- //TODO: Money rounding?
13- //TODO: equals() -DONE
14- //TODO: hashCode()
15- //TODO: Equal null
16- //TODO: Equal object
17-
1821
1922 [ SetUp ]
2023 public void Setup ( )
Original file line number Diff line number Diff line change 33
44namespace TheSoftwareGorilla . TDD . Money . Tests ;
55
6+
7+ #region TODO List
8+ //TODO: $5 + 10 CHF = $10 if rate is 2:1
9+ //TODO: $5 * 2 = $10 - DONE
10+ //TODO: Make "amount" private - DONE
11+ //TODO: Dollar side-effects? - DONE
12+ //TODO: Money rounding?
13+ //TODO: equals() -DONE
14+ //TODO: hashCode()
15+ //TODO: Equal null
16+ //TODO: Equal object
17+ #endregion
18+
619public class DollarTests
720{
8- //TODO: $5 + 10 CHF = $10 if rate is 2:1
9- //TODO: $5 * 2 = $10 - DONE
10- //TODO: Make "amount" private - DONE
11- //TODO: Dollar side-effects? - DONE
12- //TODO: Money rounding?
13- //TODO: equals() -DONE
14- //TODO: hashCode()
15- //TODO: Equal null
16- //TODO: Equal object
17-
18-
1921 [ SetUp ]
2022 public void Setup ( )
2123 {
Original file line number Diff line number Diff line change 33
44namespace TheSoftwareGorilla . TDD . Money . Tests ;
55
6+ #region TODO List
7+ //TODO: $5 + 10 CHF = $10 if rate is 2:1
8+ //TODO: $5 * 2 = $10 - DONE
9+ //TODO: Make "amount" private - DONE
10+ //TODO: Dollar side-effects? - DONE
11+ //TODO: Money rounding?
12+ //TODO: equals() -DONE
13+ //TODO: hashCode()
14+ //TODO: Equal null
15+ //TODO: Equal object
16+ //TODO: 5 CHF * 2 = 10 CHF - DONE
17+ //TODO: Dollar/Franc duplication
18+ //TODO: Common equals
19+ //TODO: Common Times
20+ #endregion
621public class DollarTests
722{
8- //TODO: $5 + 10 CHF = $10 if rate is 2:1
9- //TODO: $5 * 2 = $10 - DONE
10- //TODO: Make "amount" private - DONE
11- //TODO: Dollar side-effects? - DONE
12- //TODO: Money rounding?
13- //TODO: equals() -DONE
14- //TODO: hashCode()
15- //TODO: Equal null
16- //TODO: Equal object
17- //TODO: 5 CHF * 2 = 10 CHF - DONE
18- //TODO: Dollar/Franc duplication
19- //TODO: Common equals
20- //TODO: Common Times
21-
2223 [ SetUp ]
2324 public void Setup ( )
2425 {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ namespace TheSoftwareGorilla.TDD.Money.Tests;
22
33public class FrancTests
44{
5- //TODO: 5 CHF * 2 = 10 CHF - DONE
65
76 [ SetUp ]
87 public void Setup ( )
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ namespace TheSoftwareGorilla.TDD.Money.Tests;
22
33public class FrancTests
44{
5- //TODO: 5 CHF * 2 = 10 CHF - DONE
6-
75 [ SetUp ]
86 public void Setup ( )
97 {
Original file line number Diff line number Diff line change 11namespace TheSoftwareGorilla . TDD . Money . Tests ;
22
3+ #region TODO List
4+ //TODO: $5 + 10 CHF = $10 if rate is 2:1
5+ //TODO: $5 * 2 = $10 - DONE
6+ //TODO: Make "amount" private - DONE
7+ //TODO: Dollar side-effects? - DONE
8+ //TODO: Money rounding?
9+ //TODO: equals() -DONE
10+ //TODO: hashCode()
11+ //TODO: Equal null
12+ //TODO: Equal object
13+ //TODO: 5 CHF * 2 = 10 CHF - DONE
14+ //TODO: Dollar/Franc duplication
15+ //TODO: Common equals - DONE
16+ //TODO: Common Times
17+ //TODO: Compare Francs with Dollars
18+ #endregion
19+
320public class MoneyTests
421{
5- //TODO: $5 + 10 CHF = $10 if rate is 2:1
6- //TODO: $5 * 2 = $10 - DONE
7- //TODO: Make "amount" private - DONE
8- //TODO: Dollar side-effects? - DONE
9- //TODO: Money rounding?
10- //TODO: equals() -DONE
11- //TODO: hashCode()
12- //TODO: Equal null
13- //TODO: Equal object
14- //TODO: 5 CHF * 2 = 10 CHF - DONE
15- //TODO: Dollar/Franc duplication
16- //TODO: Common equals - DONE
17- //TODO: Common Times
18- //TODO: Compare Francs with Dollars
19-
2022 [ SetUp ]
2123 public void Setup ( )
2224 {
You can’t perform that action at this time.
0 commit comments