Пример #1
0
 def test_after_decreaseCounter_if_counter_is_greater_than_zero_the_state_should_be_Not_isStopped(self):
     counter = Countdown()
     counter.startCountDown(10)
     counter.decreaseCounter()
     self.assertFalse(counter.isStopped())
Пример #2
0
 def test_after_decreaseCounter_if_counter_is_less_than_zero_the_state_should_be_isStopped(self):
     counter = Countdown()
     counter.startCountDown(1)
     counter.decreaseCounter()
     counter.decreaseCounter()
     self.assertTrue(counter.isStopped())
Пример #3
0
 def test_after_starting_the_countdown_its_state_should_be_Not_isStopped(self):
     counter = Countdown()
     counter.startCountDown(10)
     self.assertFalse(counter.isStopped())