X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftests%2Fxestiaab_contactload.h;h=f66f6d592c595fc6f4ae03e31a5842da20af9c1d;hb=c3caab2c7ab2b4256304e4d1687cf8d15394f31d;hp=090f79441d6751266c35ab9c7519b325c1b3bb8d;hpb=b16a0672e8bcbc1840a5f2284dbf562963aca6b1;p=xestiaab%2F.git diff --git a/source/tests/xestiaab_contactload.h b/source/tests/xestiaab_contactload.h index 090f794..f66f6d5 100644 --- a/source/tests/xestiaab_contactload.h +++ b/source/tests/xestiaab_contactload.h @@ -17,5 +17,22 @@ // with Xestia Address Book. If not, see #include +#include "../contacteditor/ContactDataObject.h" + +TEST(ContactLoad, ContactLoadTests){ + + + ContactDataObject TestFile; + + // Check that the file given is not missing. + + ASSERT_EQ(CONTACTLOAD_FILEMISSING, TestFile.LoadFile("MissingFile.vcf")); + + // Check that the file given does not have an error when attempting to + // open it. + + ASSERT_EQ(CONTACTLOAD_FILEERROR, TestFile.LoadFile("InvalidPermissions.vcf")); + +} // TODO: Add tests for the Contact Loading process. \ No newline at end of file