Esempio n. 1
0
        public void ReturnsOneForOne()
        {
            var fizzBuzz = new FizzBuzzNumber("1");
            var result   = fizzBuzz.GetValue();

            Assert.Equal("1", result);
        }
Esempio n. 2
0
        public void ReturnsFizzBuzzForFifteen()
        {
            var fizzBuzz = new FizzBuzzNumber("15");
            var result   = fizzBuzz.GetValue();

            Assert.Equal("FizzBuzz", result);
        }
Esempio n. 3
0
        public void ReturnsZeroForZero()
        {
            var fizzBuzz = new FizzBuzzNumber("0");
            var result   = fizzBuzz.GetValue();

            Assert.Equal("0", result);
        }
Esempio n. 4
0
        public void NotANumberExceptionIsThrownForANonNumber()
        {
            var fizzBuzz = new FizzBuzzNumber("Jordan");

            Assert.Throws <NotANumberException>(() => fizzBuzz.GetValue());
        }