Co-Simulation/Sumo/sumo-1.7.0/unittest/src/microsim/MSEventControlTest.cpp
/* Test the method 'execute'. Tests if the execute method from the Command Class is called.*/
Test the method 'execute'. Tests if the execute method from the Command Class is called.
Test the method ' execute ' . Tests if the execute method from the Command Class is called .
TEST(MSEventControl, test_method_execute) {
    MSEventControl eventControl;
    CommandMock* mock = new CommandMock();
    eventControl.addEvent(mock);
    EXPECT_FALSE(mock->isExecuteCalled());
    eventControl.execute(5);
    EXPECT_TRUE(mock->isExecuteCalled());
}
TEST ( MSEventControl , test_method_execute ) { MSEventControl eventControl ; CommandMock * mock = new CommandMock ( ) ; eventControl . addEvent ( mock ) ; EXPECT_FALSE ( mock -> isExecuteCalled ( ) ) ; eventControl . execute ( 5 ) ; EXPECT_TRUE ( mock -> isExecuteCalled ( ) ) ; }
Test the method 'execute'.
Test the method ' execute ' .