Slide 19
Slide 19 text
TCR BY EXAMPLE(1)
@Test
public void fizzBuzzConvertorLeavesNormalNumbersAlone() {
Assert.assertEquals("1", convert(1));
}
...
public string convert(int toConvertToFizzBuzz) {
return String.valueOf(toConvertToFizzBuzz);
}
1
2
3
4
5
6
7
8
@Test
public void fizzBuzzConvertorLeavesNormalNumbersAlone() {
Assert.assertEquals("1", convert(1));
}
1
2
3
4
...
5
public string convert(int toConvertToFizzBuzz) {
6
return String.valueOf(toConvertToFizzBuzz);
7
}
8
public string convert(int toConvertToFizzBuzz) {
return String.valueOf(toConvertToFizzBuzz);
}
@Test
1
public void fizzBuzzConvertorLeavesNormalNumbersAlone() {
2
Assert.assertEquals("1", convert(1));
3
}
4
...
5
6
7
8
17