GameTimerTest

13

tests

0

failures

0

ignored

0.048s

duration

100%

successful

Tests

Test Method name Duration Result
addTimeClampsAtZeroWhenNegative() addTimeClampsAtZeroWhenNegative() 0.001s passed
addTimeIncreasesTime() addTimeIncreasesTime() 0s passed
addTimeNegativeDoesNotClampIfAboveZero() addTimeNegativeDoesNotClampIfAboveZero() 0s passed
constructorClampsNegativeStartTime() constructorClampsNegativeStartTime() 0s passed
testIsTimeUpReturnsFalseWhenTimeRemaining() testIsTimeUpReturnsFalseWhenTimeRemaining() 0.001s passed
testIsTimeUpReturnsTrueAtZero() testIsTimeUpReturnsTrueAtZero() 0.001s passed
Start=0.5, Decrement=1.0 -> Clamp to 0 testTimerClampsAtZero(float, float)[1] 0.002s passed
Start=0.0, Decrement=1.0 -> Clamp to 0 testTimerClampsAtZero(float, float)[2] 0.001s passed
Start=5.0, Decrement=10.0 -> Clamp to 0 testTimerClampsAtZero(float, float)[3] 0.001s passed
Start=300.0, Decrement=1.0 -> Expected=299.0 testTimerDecrement(float, float, float)[1] 0.037s passed
Start=150.0, Decrement=0.5 -> Expected=149.5 testTimerDecrement(float, float, float)[2] 0.001s passed
Start=10.0, Decrement=10.0 -> Expected=0.0 testTimerDecrement(float, float, float)[3] 0.002s passed
Start=300.0, Decrement=0.0 -> Expected=300.0 testTimerDecrement(float, float, float)[4] 0.001s passed