ASSERT_EQ("20160520", RecurrenceDate);
ASSERT_EQ("ZILCH=DATA", RecurrenceTokens);
+ // Get the first X-EXAMPLE1 token.
+
+ std::string XTokenName;
+ std::string XTokenData;
+
+ if (TestTask.XTokensData.size() != 0 ){
+
+ XTokenData = TestTask.XTokensData[0];
+
+ }
+
+ if (TestTask.XTokensData.size() != 0){
+
+ XTokenName = TestTask.XTokensDataTokens[0];
+
+ }
+
+ ASSERT_EQ("Moo", XTokenData);
+ ASSERT_EQ("X-EXAMPLE1", XTokenName);
+
+ // Get the second X-EXAMPLE1 token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 1){
+
+ XTokenData = TestTask.XTokensData[1];
+
+ }
+
+ if (TestTask.XTokensData.size() > 1){
+
+ XTokenName = TestTask.XTokensDataTokens[1];
+
+ }
+
+ ASSERT_EQ("Meep", XTokenData);
+ ASSERT_EQ("X-EXAMPLE1;ANIMAL=NOPE", XTokenName);
+
+ // Get the third X-EXAMPLE1 token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 2){
+
+ XTokenData = TestTask.XTokensData[2];
+
+ }
+
+ if (TestTask.XTokensData.size() > 2){
+
+ XTokenName = TestTask.XTokensDataTokens[2];
+
+ }
+
+ ASSERT_EQ("Meow", XTokenData);
+ ASSERT_EQ("X-EXAMPLE1;ANIMAL=CAT", XTokenName);
+
+ // Get the first X-EXAMPLE2 token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 3){
+
+ XTokenData = TestTask.XTokensData[3];
+
+ }
+
+ if (TestTask.XTokensData.size() > 3){
+
+ XTokenName = TestTask.XTokensDataTokens[3];
+
+ }
+
+ ASSERT_EQ("Dish", XTokenData);
+ ASSERT_EQ("X-EXAMPLE2", XTokenName);
+
+ // Get the second X-EXAMPLE2 token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 4){
+
+ XTokenData = TestTask.XTokensData[4];
+
+ }
+
+ if (TestTask.XTokensData.size() > 4){
+
+ XTokenName = TestTask.XTokensDataTokens[4];
+
+ }
+
+ ASSERT_EQ("Fork", XTokenData);
+ ASSERT_EQ("X-EXAMPLE2;OBJECT=KITCHEN", XTokenName);
+
+ // Get the third X-EXAMPLE2 token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 5){
+
+ XTokenData = TestTask.XTokensData[5];
+
+ }
+
+ if (TestTask.XTokensData.size() > 5){
+
+ XTokenName = TestTask.XTokensDataTokens[5];
+
+ }
+
+ ASSERT_EQ("Table", XTokenData);
+ ASSERT_EQ("X-EXAMPLE2;OBJECT=LIVINGROOM", XTokenName);
+
+ // Get the X-STATUS token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 6){
+
+ XTokenData = TestTask.XTokensData[6];
+
+ }
+
+ if (TestTask.XTokensData.size() > 6){
+
+ XTokenName = TestTask.XTokensDataTokens[6];
+
+ }
+
+ ASSERT_EQ("Idle", XTokenData);
+ ASSERT_EQ("X-STATUS;HOLIDAY=YES", XTokenName);
+
+ // Get the X-TRANSPORT token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 7){
+
+ XTokenData = TestTask.XTokensData[7];
+
+ }
+
+ if (TestTask.XTokensData.size() > 7){
+
+ XTokenName = TestTask.XTokensDataTokens[7];
+
+ }
+
+ ASSERT_EQ("Private Hire", XTokenData);
+ ASSERT_EQ("X-TRANSPORT;PUBLIC=NO", XTokenName);
+
+ // Get the X-PHANTOM-STATUS token.
+
+ XTokenName.clear();
+ XTokenData.clear();
+
+ if (TestTask.XTokensData.size() > 8){
+
+ XTokenData = TestTask.XTokensData[8];
+
+ }
+
+ if (TestTask.XTokensData.size() > 8){
+
+ XTokenName = TestTask.XTokensDataTokens[8];
+
+ }
+
+ ASSERT_EQ("None", XTokenData);
+ ASSERT_EQ("X-PHANTOM-STATUS;HELP=NONE", XTokenName);
+
}
\ No newline at end of file