From: Steve Brokenshire Date: Mon, 29 Feb 2016 15:13:22 +0000 (+0000) Subject: Added unit tests for verifying that the settings match in CalDAVNormal X-Git-Tag: release-0.02~325 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=e17036396036c465c9253a63a2c73b52ae0e280f;p=xestiacalendar%2F.git Added unit tests for verifying that the settings match in CalDAVNormal --- diff --git a/source/tests/xestiacalendar_caldav.h b/source/tests/xestiacalendar_caldav.h index 50faa06..fbb8968 100644 --- a/source/tests/xestiacalendar_caldav.h +++ b/source/tests/xestiacalendar_caldav.h @@ -183,7 +183,21 @@ TEST(CalDAV, BasicTests){ // (*nix version) Setup an initial connection (with a valid // SSL certificate). + + CalDAV CalDAVNormal; + CalDAVNormal.SetupConnectionData(&ConnNormal); + + // Verify that the settings match with the CalDAVConnectionData + // passed. + + CalDAVStatus CalDAVNormalStatus = CalDAVNormal.GetConnectionData(); + ASSERT_EQ(CalDAVNormalStatus.Hostname, ConnNormal.Hostname); + ASSERT_EQ(CalDAVNormalStatus.Username, ConnNormal.Username); + ASSERT_EQ(CalDAVNormalStatus.Port, ConnNormal.Port); + ASSERT_EQ(CalDAVNormalStatus.Prefix, ConnNormal.Prefix); + ASSERT_EQ(CalDAVNormalStatus.UseSSL, ConnNormal.UseSSL); + // Verify that the connection was successful (with a valid // SSL certificate).