def test_givenNumber3_isMultipleOf3_shouldReturnTrue(self): fizzBuzzCounter = FizzBuzzCounter() is3multipleof3 = fizzBuzzCounter.isItMultipleOfN(3, 3) self.assertEqual(is3multipleof3, True)
def test_printAndReturnFizzBuzz_shouldPrintAndReturnAsExpected(self): expected = "fizzbuzz" fizzBuzzCounter = FizzBuzzCounter() fizzBuzz = fizzBuzzCounter.getFizzBuzz() self.assertEqual(fizzBuzz, expected)
def test_givenNumber11_isMultipleOf3_shouldReturnFalse(self): fizzBuzzCounter = FizzBuzzCounter() is11multipleof3 = fizzBuzzCounter.isItMultipleOfN(11, 3) self.assertEqual(is11multipleof3, False)
def test_givenNumber23_isMultipleOf5_shouldReturnFalse(self): fizzBuzzCounter = FizzBuzzCounter() is23multipleof5 = fizzBuzzCounter.isItMultipleOfN(23, 5) self.assertEqual(is23multipleof5, False)
def test_givenNumber15_isMultipleOf5_shouldReturnTrue(self): fizzBuzzCounter = FizzBuzzCounter() is15multipleof5 = fizzBuzzCounter.isItMultipleOfN(15, 5) self.assertEqual(is15multipleof5, True)