|
|
@ -70,6 +70,23 @@ class MyTest { |
|
|
|
assertThat(expenseReturn, equalTo(expectedResult)); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void remove_one_expense() { |
|
|
|
//arrange |
|
|
|
Calculations.clearExpenses(); |
|
|
|
int expense1 = 500; |
|
|
|
int expense2 = 300; |
|
|
|
|
|
|
|
//act |
|
|
|
Calculations.addExpense(expense1); |
|
|
|
Calculations.addExpense(expense2); |
|
|
|
Calculations.removeExpense(expense1); |
|
|
|
int expenseReturn = Calculations.getExpenseSum(); |
|
|
|
|
|
|
|
//assert |
|
|
|
assertThat(expenseReturn, equalTo(expense2)); |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
@Test |
|
|
|
void score_incompleteFrames_sumOfRolls() { |
|
|
|