File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 */
88public class FizzBuzzTest {
99 @ Test
10- public void test_getcode_should_return_1_given_1 () {
10+ public void test_getcode_should_return_string_of_given_number () {
1111 assertThat (FizzBuzz .getCode (1 )).isEqualTo ("1" );
12+ assertThat (FizzBuzz .getCode (2 )).isEqualTo ("2" );
13+ assertThat (FizzBuzz .getCode (13 )).isEqualTo ("13" );
1214 }
1315
1416 @ Test
15- public void test_getcode_should_return_fizz_given_3 () {
17+ public void test_getcode_should_return_fizz () {
1618 assertThat (FizzBuzz .getCode (3 )).isEqualTo ("Fizz" );
19+ assertThat (FizzBuzz .getCode (6 )).isEqualTo ("Fizz" );
1720 }
1821
1922 @ Test
20- public void test_getcode_should_return_buzz_given_5 () {
23+ public void test_getcode_should_return_buzz () {
2124 assertThat (FizzBuzz .getCode (5 )).isEqualTo ("Buzz" );
25+ assertThat (FizzBuzz .getCode (10 )).isEqualTo ("Buzz" );
2226 }
2327
2428}
You can’t perform that action at this time.
0 commit comments