Co-Simulation/Sumo/sumo-1.7.0/unittest/src/netbuild/NBTrafficLightLogicTest.cpp
/* Test the method 'getDuration'*/
Test the method 'getDuration'
Test the method ' getDuration '
TEST(NBTrafficLightLogic, test_method_getDuration) {
    NBTrafficLightLogic tll("1", "11", 2);
    EXPECT_EQ(0, tll.getDuration());
    tll.addStep(3, "gr");
    tll.addStep(5, "rG");
    EXPECT_EQ(8, tll.getDuration());
}
TEST ( NBTrafficLightLogic , test_method_getDuration ) { NBTrafficLightLogic tll ( " " , " " , 2 ) ; EXPECT_EQ ( 0 , tll . getDuration ( ) ) ; tll . addStep ( 3 , " " ) ; tll . addStep ( 5 , " " ) ; EXPECT_EQ ( 8 , tll . getDuration ( ) ) ; }
Test the method 'getDuration'
Test the method ' getDuration '