NerfUS mobile node that manages a target for the Nerf gun firing range
Dependencies: LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager
Fork of NerfUS by
Diff: TESTS/TargetManagerTest.cpp
- Revision:
- 31:c6dc9811ed14
- Parent:
- 30:412a779cf607
- Child:
- 32:50b777bab5a4
--- a/TESTS/TargetManagerTest.cpp Mon Mar 27 19:05:45 2017 -0400 +++ b/TESTS/TargetManagerTest.cpp Mon Mar 27 19:10:07 2017 -0400 @@ -26,3 +26,10 @@ TargetManager target_manager(targets, mock_nerfus_ticker); } +TEST_F(TargetManagerTest, WhenNoTargetIsActiveThenCallsToTargetHitAndTargetMissedDoNothing) +{ + TargetManager target_manager(targets, mock_nerfus_ticker); + + target_manager.target_missed(0); + target_manager.target_hit(0); +}