package remonsinnema.blog.fizzbuzz;

import static org.junit.Assert.assertEquals;

import org.junit.Test;


public class FizzBuzzTest {

  private final FizzBuzz fizzbuzz = new FizzBuzz();

  @Test
  public void test() {
    assertFizzBuzz("1", 1);
    assertFizzBuzz("2", 2);
    assertFizzBuzz("Fizz", 3);
    assertFizzBuzz("4", 4);
    assertFizzBuzz("Buzz", 5);
  }

  private void assertFizzBuzz(String expected, int n) {
    assertEquals(Integer.toString(n), expected, fizzbuzz.get(n));
  }

}

@@ -374,24 +374,342 @@
 Buzz%22, 5);%0D%0A
+    assertFizzBuzz(%22Fizz%22, 6);%0D%0A    assertFizzBuzz(%227%22, 7);%0D%0A    assertFizzBuzz(%228%22, 8);%0D%0A    assertFizzBuzz(%22Fizz%22, 9);%0D%0A    assertFizzBuzz(%22Buzz%22, 10);%0D%0A    assertFizzBuzz(%2211%22, 11);%0D%0A    assertFizzBuzz(%22Fizz%22, 12);%0D%0A    assertFizzBuzz(%2213%22, 13);%0D%0A    assertFizzBuzz(%2214%22, 14);%0D%0A    assertFizzBuzz(%22FizzBuzz%22, 15);%0D%0A
   %7D%0D%0A%0D%0A  pri

Add test for simultaneous Fizz and Buzz