From c5d6db0c41d2f729b771b2a1fa3617bb31d457e4 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 23 Jan 2016 13:49:07 +0000 Subject: [PATCH] Added tests for UID in iCalendarEvent/ObjectDataTests. --- source/tests/xestiacalendar_icaleventload.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index fdafff1..56367ab 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -42,7 +42,14 @@ TEST(iCalendarEvent, ObjectDataTests){ ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent.LoadFile("iCalendarEvent-Load2.vcf")); ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent.ValidBaseObject()); + // Tests for DTSTAMP. + ASSERT_EQ("20160122T124100Z", TestEvent.DateTimeStampData); ASSERT_EQ("OTHER=PARAM", TestEvent.DateTimeStampTokens); + // Tests for UID. + + ASSERT_EQ("b3a16392-ad86-4061-be53-c215af2306e0", TestEvent.UniqueID); + ASSERT_EQ("UNIQUEPARAM=CERTAINLY;OKAY=MAYBENOT", TestEvent.UniqueIDTokens); + } \ No newline at end of file -- 2.39.5