Пример #1
0
        public void ResultArrayReturnsArrayWithNumberStringValues(string expected, int index)
        {
            FizzBuzzClass fizzBuzzClass = new FizzBuzzClass();
            var           results       = fizzBuzzClass.FizzBuzzResultArray();
            string        one           = results[index];

            Assert.Equal(expected, one);
        }
Пример #2
0
        public void ResultArrayReturns100Length()
        {
            FizzBuzzClass fizzBuzzClass = new FizzBuzzClass();
            var           result        = fizzBuzzClass.FizzBuzzResultArray();
            int           length        = result.Length;

            Assert.Equal(100, length);
        }
Пример #3
0
        public void WhenDivisibleBy3And5_PrintFizzBuzz(int index)
        {
            FizzBuzzClass fizzBuzzClass = new FizzBuzzClass();
            var           results       = fizzBuzzClass.FizzBuzzResultArray();

            string fizzBuzz = results[index];

            Assert.Equal("FizzBuzz", fizzBuzz);
        }