Пример #1
0
        public void ReturnCorrectNumberOrWordGivenAnInput(int input, string expectedResult)
        {
            var game = new FizzBuzzGame();

            var result = game.CalculateFizzBuzz(input);

            result.Should().Be(expectedResult);
        }
Пример #2
0
        public void ThrowOutOfRangeExceptionWhenNotBetweenOneAndOneHundred(int input)
        {
            var game = new FizzBuzzGame();

            Assert.Throws <ArgumentOutOfRangeException>(() => game.CalculateFizzBuzz(input));
        }