Exemple #1
0
        public void FizzBuzzShouldWork(int num, string expected)
        {
            var runner = new DoFizzBuzz();

            var answer = runner.GetFizzBuzz(num);

            answer.Should().Be(expected);
        }
Exemple #2
0
        public void TwoShouldBeReturned()
        {
            var runner = new DoFizzBuzz();

            var answer = runner.GetFizzBuzz(2);

            answer.Should().Be("2");
        }
Exemple #3
0
        public void OneShouldBeReturned()
        {
            var runner = new DoFizzBuzz();

            var answer = runner.GetFizzBuzz(1);

            answer.Should().Be("1");
        }