public void ReturnsOneForOne() { var fizzBuzz = new FizzBuzzNumber("1"); var result = fizzBuzz.GetValue(); Assert.Equal("1", result); }
public void ReturnsFizzBuzzForFifteen() { var fizzBuzz = new FizzBuzzNumber("15"); var result = fizzBuzz.GetValue(); Assert.Equal("FizzBuzz", result); }
public void ReturnsZeroForZero() { var fizzBuzz = new FizzBuzzNumber("0"); var result = fizzBuzz.GetValue(); Assert.Equal("0", result); }
public void NotANumberExceptionIsThrownForANonNumber() { var fizzBuzz = new FizzBuzzNumber("Jordan"); Assert.Throws <NotANumberException>(() => fizzBuzz.GetValue()); }