#include "../common/file.h"
+#include "../common/text.h"
TEST(CommonFunctions, FileTests){
ASSERT_EQ(false, FileExists("iCalendarEvent-Missing.vcf"));
ASSERT_EQ(true, FileExists("iCalendarEvent-InvalidPermissions.vcf"));
+}
+
+TEST(CommonFunctions, ProcessTextVectorsTests){
+
+ // Setup the objects to be used for processing.
+
+ vector<string> TextPropertiesExample1;
+ vector<string> TextValueExample1;
+ //multimap<string, string> TextExample1Results;
+ multimap<string, string> TextExample1TestResult1;
+
+ TextPropertiesExample1.push_back("ATTENDEE");
+ TextValueExample1.push_back("Example Attendee 1");
+
+ TextPropertiesExample1.push_back("ATTENDEE");
+ TextValueExample1.push_back("Example Attendee 2");
+
+ TextPropertiesExample1.push_back("ATTENDEE");
+ TextValueExample1.push_back("Example Attendee 3");
+
+ TextExample1TestResult1.insert(make_pair("ATTENDEE", "Example Attendee 1"));
+ TextExample1TestResult1.insert(make_pair("ATTENDEE", "Example Attendee 2"));
+ TextExample1TestResult1.insert(make_pair("ATTENDEE", "Example Attendee 3"));
+
+ ASSERT_EQ(TextExample1TestResult1, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "ATTENDEE"));
+
}
\ No newline at end of file