24 for(
int i = 0; i < 6; ++i)
26 ASSERT_EQ(instance->getCount(flagsList[i]), 1);
28 ASSERT_EQ(instance->getCount(flagsList[5]<<1), 0);
33 ASSERT_EQ(instance->getName(Workspace::INPUT, (
size_t) 0), defaultInputChannelName);
34 ASSERT_EQ(instance->getName(Workspace::OUTPUT, (
size_t) 0), defaultOutputChannelName);
35 ASSERT_EQ(instance->getName(Workspace::PARAMETER, (
size_t) 0), defaultParameterChannelName);
36 ASSERT_EQ(instance->getName(Workspace::STATE, (
size_t) 0), defaultStateChannelName);
37 ASSERT_EQ(instance->getName(Workspace::EVENT, (
size_t) 0), defaultEventChannelName);
38 ASSERT_EQ(instance->getName(Workspace::COMMENT, (
size_t) 0), defaultCommentChannelName);
43 ASSERT_EQ(instance->getDescription(Workspace::PARAMETER, (
size_t) 0), defaultParameterChannelDescription);
44 ASSERT_EQ(instance->getDescription(Workspace::STATE, (
size_t) 0), defaultStateChannelDescription);
45 ASSERT_EQ(instance->getDescription(Workspace::EVENT, (
size_t) 0), defaultEventChannelDescription);
50 EXPECT_NEAR(instance->getValue(Workspace::EVENT, (
size_t) 0), 0.0, 0.001);
51 EXPECT_NEAR(instance->getValue(Workspace::PARAMETER, (
size_t) 0), 0.0, 0.001);
52 EXPECT_NEAR(instance->getValue(Workspace::STATE, (
size_t) 0), 0.0, 0.001);
58 ASSERT_DOUBLE_EQ(instance->getValue(Workspace::PARAMETER, (
size_t) 0), 0.0);
59 for(
int i = 0; i < 3; ++i)
61 instance->setValue(0, temp*i);
62 ASSERT_DOUBLE_EQ(instance->getValue(Workspace::PARAMETER, (
size_t) 0), temp*i);
68 ASSERT_EQ(instance->getValueString(Workspace::EVENT, (
size_t) 0),
"");
72 ASSERT_EQ(instance->getValueString(Workspace::STATE, (
size_t) 0),
"");
77 instance->setComment((
size_t) 0,
"test");
78 ASSERT_EQ(instance->getValueString(Workspace::COMMENT, (
size_t) 0),
"test");
85 ASSERT_EQ(manager, manager->getInstance());