From: Steve Brokenshire Date: Sun, 24 Jan 2016 10:22:02 +0000 (+0000) Subject: Added unit tests for ORGANIZER in iCalendarEvent/ObjectDataTests. X-Git-Tag: release-0.02~688 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=ba6e2ab69cd3df23489b56d0455020dc30889112;p=xestiacalendar%2F.git Added unit tests for ORGANIZER in iCalendarEvent/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index ffa5a91..68c7339 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -112,16 +112,25 @@ TEST(iCalendarEvent, ObjectDataTests){ ASSERT_EQ("5.0;5.0", TestEvent.GeographicData); ASSERT_EQ("EXAMPLE=MEEP", TestEvent.GeographicTokens); - // Test for LAST-MODIFIED. + // Tests for LAST-MODIFIED. ASSERT_EQ("20160124T093000Z", TestEvent.LastModifiedData); ASSERT_EQ("FUTURE=ODD", TestEvent.LastModifiedTokens); - // Test for LOCATION. + // Tests for LOCATION. ASSERT_EQ("The Basement, Truro", TestEvent.LocationData); ASSERT_EQ("null:nodata", TestEvent.LocationDataAltRep); ASSERT_EQ("kw", TestEvent.LocationDataLanguage); ASSERT_EQ("EXACT=NO", TestEvent.LocationDataTokens); + // Tests for ORGANIZER. + + ASSERT_EQ("mailto:organiser@example.com", TestEvent.OrganiserData); + ASSERT_EQ("ExampleOrganiser", TestEvent.OrganiserDataCommonName); + ASSERT_EQ("null:nodata", TestEvent.OrganiserDataDirectoryEntry); + ASSERT_EQ("mailto:organiser.noreply@example.com", TestEvent.OrganiserDataSentByParam); + ASSERT_EQ("kw", TestEvent.OrganiserDataLanguage); + ASSERT_EQ("HAPPY=DAYS", TestEvent.OrganiserDataTokens); + } \ No newline at end of file