// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
#include <gtest/gtest.h>
+#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"));
+
+ // Check that the file is a valid vCard 4.0 file.
+
+ ASSERT_EQ(CONTACTLOAD_FILEINVALIDFORMAT, TestFile.LoadFile("LoadCheck-Load1-v3.vcf"));
+
+ // Check that the vCard 4.0 file meets the base specification.
+
+ ASSERT_EQ(CONTACTLOAD_FILEBASESPECFAIL, TestFile.LoadFile("LoadCheck-Load3.vcf"));
+
+ // Check that the vCard 4.0 file loads OK.
+
+ ASSERT_EQ(CONTACTLOAD_OK, TestFile.LoadFile("LoadCheck-Load4.vcf"));
+
+}
// TODO: Add tests for the Contact Loading process.
\ No newline at end of file