From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:09:23 +0000 (+0000) Subject: Added second set of tests for property names with a semi-colon in. X-Git-Tag: release-0.02~757 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=d0a9a1b8502a6ee2b2a24ad8338696dea87a68e3;p=xestiacalendar%2F.git Added second set of tests for property names with a semi-colon in. --- diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index a062198..e6499fc 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -51,6 +51,15 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ TextPropertiesExample1.push_back("CONTACT;SETUP=NO"); TextValueExample1.push_back("Third Contact"); + + TextPropertiesExample1.push_back("RESOURCES;ROOM=YES"); + TextValueExample1.push_back("First Resource Widget"); + + TextPropertiesExample1.push_back("RESOURCES;ROOM=NO"); + TextValueExample1.push_back("Second Resource Widget"); + + TextPropertiesExample1.push_back("RESOURCES;ROOM=UNKNOWN"); + TextValueExample1.push_back("Third Resource Widget"); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 1")); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 2")); @@ -79,4 +88,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "CONTACT")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("RESOURCES;ROOM=YES", "First Resource Widget")); + TextExample1TestResult.insert(make_pair("RESOURCES;ROOM=NO", "Second Resource Widget")); + TextExample1TestResult.insert(make_pair("RESOURCES;ROOM=UNKNOWN", "Third Resource Widget")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "RESOURCES")); + } \ No newline at end of file