9 #include <UnitTest++.h> 17 unsigned int dammid = 12;
19 CHECK(GetDammID() == dammid);
24 unsigned int loc = 111;
26 CHECK(GetLocation() == loc);
31 string type =
"unittest";
33 CHECK(GetType() == type);
38 string type =
"unittest";
40 CHECK(GetSubtype() == type);
45 string tag =
"unittest";
47 CHECK(GetTag(tag) == 1234);
52 string tag =
"unittest";
54 map<string, int> testmap;
55 testmap.insert(make_pair(tag, 1234));
56 CHECK(GetTagMap() == testmap);
61 string tag =
"unittest";
68 string tag =
"unittest";
75 string subtype =
"test";
76 unsigned int loc = 112;
95 string subtype =
"test";
96 unsigned int loc = 112;
100 CHECK(GetPlaceName() ==
"unit_test_112");
110 int main(
int argv,
char *argc[]) {
111 return (UnitTest::RunAllTests());
int main(int argv, char *argc[])
TEST_FIXTURE(Identifier, Test_GetAndSetDammID)
Testing the set/get for the dammid.
Defines identifying information for channels.