示例#1
0
        public void GetOutput_0_ReturnsBlankString()
        {
            // Arrange
            var game = new FizzBuzzGame();

            // Act
            var output = game.GetOutput(0);

            // Assert
            Assert.AreEqual(output, "");
        }
示例#2
0
        public void GetOutput_15_ReturnsFizzBuzz()
        {
            // Arrange
            var game = new FizzBuzzGame();

            // Act
            var output = game.GetOutput(15);

            // Assert
            Assert.AreEqual(output, "FizzBuzz");
        }
示例#3
0
        public void GetOutput_4_Returns4()
        {
            // Arrange
            var game = new FizzBuzzGame();

            // Act
            var output = game.GetOutput(4);

            // Assert
            Assert.AreEqual(output, "4");
        }