TextPropertiesExample1.push_back("RELATED;RELATION=MAYBE");
TextValueExample1.push_back("Third Relation");
+ // Examples 1 & 2: ATTENDEE
+
TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 1"));
TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 2"));
TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 3"));
ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "ATTENDEE"));
+ // Examples 3 & 4: CATEGORIES
+
TextExample1TestResult.clear();
TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 1"));
TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 2"));
TextExample1TestResult.clear();
TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 1"));
+ // Examples 5 & 6: COMMENT
+
ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "CATEGORIES"));
TextExample1TestResult.clear();
TextExample1TestResult.clear();
TextExample1TestResult.insert(make_pair("COMMENT", "This is the first comment."));
+ // Examples 7 & 8: CONTACT;(properties)
+
ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "COMMENT"));
TextExample1TestResult.clear();
TextExample1TestResult.clear();
TextExample1TestResult.insert(make_pair("CONTACT;TEST=VALUE", "First Contact"));
+ // Examples 9 & 10: RESOURCES;(properties)
+
ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "CONTACT"));
TextExample1TestResult.clear();
ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "RESOURCES"));
+ // Examples 11 & 12: RELATED;(properties)
+
TextExample1TestResult.clear();
TextExample1TestResult.insert(make_pair("RELATED;RELATION=NO", "First Relation"));
TextExample1TestResult.insert(make_pair("RELATED;RELATION=YES", "Second Relation"));