From 5e5acc300e82729825e6e26d8bc8604d0f77a019 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 23 Jan 2016 13:13:12 +0000 Subject: [PATCH] Added initial ObjectDataTests. --- source/tests/xestiacalendar_icaleventload.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index 9816c50..b9a2b63 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -34,4 +34,14 @@ TEST(iCalendarEvent, BaseObjectVerifyTests){ TestEvent.LoadFile("iCalendarEvent-Load1.vcf"); ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent.ValidBaseObject()); +} + +TEST(iCalendarEvent, ObjectDataTests){ + + CalendarEventObject TestEvent; + ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent.LoadFile("iCalendarEvent-Load2.vcf")); + ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent.ValidBaseObject()); + + ASSERT_EQ("20160122T124100Z", TestEvent.DateTimeStampData); + } \ No newline at end of file -- 2.39.5