Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for ORGANIZER in iCalendarEvent/ObjectDataTests.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 10:22:02 +0000 (10:22 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 10:22:02 +0000 (10:22 +0000)
source/tests/xestiacalendar_icaleventload.h

index ffa5a91..68c7339 100644 (file)
@@ -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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy