ASSERT_EQ("Third Contact", ContactData);
ASSERT_EQ("ZEBRAS=NO", ContactDataTokens);
+
+ // Get the first EXDATE.
+
+ std::string ExcludeDate;
+
+ if (TestTask.ExcludeDateData.begin() != TestTask.ExcludeDateData.end()){
+
+ ExcludeDate = TestTask.ExcludeDateData[0];
+
+ }
+
+ ASSERT_EQ("20160125T120000Z", ExcludeDate);
+
+ // Get the second EXDATE.
+
+ ExcludeDate.clear();
+
+ std::string ExcludeDataTimeZoneParam;
+ std::string ExcludeDataValue;
+
+ if (TestTask.ContactList.size() > 1){
+
+ ExcludeDate = TestTask.ExcludeDateData[1];
+
+ }
+
+ if (TestTask.ContactList.size() > 1){
+
+ ExcludeDataTimeZoneParam = TestTask.ExcludeDateDataTimeZoneParam[1];
+
+ }
+
+ if (TestTask.ContactList.size() > 1){
+
+ ExcludeDataValue = TestTask.ExcludeDateDataValue[1];
+
+ }
+
+ ASSERT_EQ("20160125T130000Z", ExcludeDate);
+ ASSERT_EQ("DATE-TIME", ExcludeDataValue);
+ ASSERT_EQ("Europe/Truro", ExcludeDataTimeZoneParam);
+
+ // Get the third EXDATE.
+
+ ExcludeDate.clear();
+
+ std::string ExcludeDataTokens;
+
+ if (TestTask.ContactList.size() > 2){
+
+ ExcludeDate = TestTask.ExcludeDateData[2];
+
+ }
+
+ if (TestTask.ContactList.size() > 2){
+
+ ExcludeDataTokens = TestTask.ExcludeDateDataTokens[2];
+
+ }
+
+ ASSERT_EQ("20160125T133000Z", ExcludeDate);
+ ASSERT_EQ("ZOOP=ZIPPO", ExcludeDataTokens);
+
+ // Get the first REQUEST-STATUS.
+
+ std::string RequestStatus;
+
+ if (TestTask.RequestStatusData.begin() != TestTask.RequestStatusData.end()){
+
+ RequestStatus = TestTask.RequestStatusData[0];
+
+ }
+
+ ASSERT_EQ("2.0;Success", RequestStatus);
+
+ // Get the second REQUEST-STATUS.
+
+ RequestStatus.clear();
+
+ std::string RequestLanguage;
+
+ if (TestTask.ContactList.size() > 1){
+
+ RequestStatus = TestTask.RequestStatusData[1];
+
+ }
+
+ if (TestTask.ContactList.size() > 1){
+
+ RequestLanguage = TestTask.RequestStatusLanguage[1];
+
+ }
+
+ ASSERT_EQ("3.42;Really big irrecoverable error caused by the user", RequestStatus);
+ ASSERT_EQ("en", RequestLanguage);
+
+ // Get the third REQUEST-STATUS.
+
+ RequestStatus.clear();
+
+ std::string RequestTokens;
+
+ if (TestTask.ContactList.size() > 2){
+
+ RequestStatus = TestTask.RequestStatusData[2];
+
+ }
+
+ if (TestTask.ContactList.size() > 2){
+
+ RequestTokens = TestTask.RequestStatusTokens[2];
+
+ }
+
+ ASSERT_EQ("3.7;Invalid calendar user", RequestStatus);
+ ASSERT_EQ("USER=MISSING", RequestTokens);
}
\ No newline at end of file