Created
May 27, 2014 08:21
-
-
Save wingyplus/0880dcbfd782f1ce2644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Assert; | |
public class FizzBuzzTest { | |
public void testFizzBuzShouldReturn_1_WhenInput_1() { | |
FizzBuzz fizzBuzz = new FizzBuzz(); | |
Assert.assertEquals("1", fizzBuzz.doFizzBuzz(1)); | |
} | |
public void testFizzBuzShouldReturn_2_WhenInput_2() { | |
FizzBuzz fizzBuzz = new FizzBuzz(); | |
Assert.assertEquals("2", fizzBuzz.doFizzBuzz(2)); | |
} | |
public void testFizzBuzShouldReturn_Fizz_WhenInput_3() { | |
FizzBuzz fizzBuzz = new FizzBuzz(); | |
Assert.assertEquals("Fizz", fizzBuzz.doFizzBuzz(3)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment