コード例 #1
0
        public void Should_return_fizz_when_number_is_a_multiple_of_three_only(int number)
        {
            //Arrange
            var fizzBuzzService = new FizzBuzzService();

            //Act
            var result = fizzBuzzService.GetValue(number);

            //Assert
            Assert.True(result == "fizz");
        }
コード例 #2
0
        public void Should_return_a_number_as_string_when_number_is_not_a_multiple_of_three()
        {
            //Arrange
            var fizzBuzzService = new FizzBuzzService();

            //Act
            var result = fizzBuzzService.GetValue(2);

            //Assert
            Assert.True(result == "2");
        }