12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /* Generated by YAKINDU Statechart Tools code generator. */
- #include <string>
- #include "gtest/gtest.h"
- #include "StaticChoice.h"
- #include "sc_runner.h"
- #include "sc_types.h"
- namespace {
- //! The timers are managed by a timer service. */
- static SctUnitRunner * runner;
- class StaticChoiceTest : public ::testing::Test{
- protected:
-
- StaticChoice* statechart;
-
- virtual void SetUp() {
- statechart = new StaticChoice();
- statechart->init();
- runner = new SctUnitRunner(
- statechart,
- false,
- 200
- );
- }
- virtual void TearDown() {
- delete statechart;
- delete runner;
- }
-
-
- };
- TEST_F(StaticChoiceTest, StaticChoiceTest) {
-
- statechart->enter();
-
- EXPECT_TRUE(statechart->isStateActive(StaticChoice::main_region_Start));
-
- runner->proceed_cycles(1);
-
-
- }
- }
|