Example #1
0
        public void GetFizzBuzzValue_ShouldReturnStringifiedNumber()
        {
            // Arrange
            IFizzBuzzService fizzBuzzService = new FizzBuzzService();
            const int        i = 1;

            // Act
            var result = fizzBuzzService.GetFizzBuzzValue(i);

            // Assert
            Assert.Equal(i.ToString(), result);
        }
Example #2
0
        public void GetFizzBuzzValue_ShouldReturnFizzBuzz()
        {
            // Arrange
            IFizzBuzzService fizzBuzzService = new FizzBuzzService();
            const int        i = 15;

            // Act
            var result = fizzBuzzService.GetFizzBuzzValue(i);

            // Assert
            Assert.Equal("FizzBuzz", result);
        }