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