Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added source code, headers and unit test to check that a file has loaded OK in Contac...
[xestiaab/.git] / source / tests / xestiaab_contactload.h
index f66f6d5..1820bbf 100644 (file)
@@ -32,6 +32,18 @@ TEST(ContactLoad, ContactLoadTests){
        // 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"));
 
 }
 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy