Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Finished remaining code and unit tests for the N vCard property for ContactDataObject.
[xestiaab/.git] / source / tests / xestiaab_contactload.h
index 4585abc..10f0b5d 100644 (file)
@@ -133,10 +133,27 @@ TEST(ContactLoad, ContactLoadTests){
        
        // Check that the name has been read (N).
        
-       ASSERT_EQ("Test", TestFile.NameForename); 
-       ASSERT_EQ("3", TestFile.NameAltID); 
-       ASSERT_EQ("kw", TestFile.NameLanguage); 
+       ASSERT_EQ("Contact", TestFile.NameSurname);
+       ASSERT_EQ("Test", TestFile.NameForename);
+       ASSERT_EQ("Example", TestFile.NameOtherNames);
+       ASSERT_EQ("Robot", TestFile.NameTitle);
+       ASSERT_EQ("LOONY", TestFile.NameSuffix);
+       
+       // Check the ALTID parameter.
+       
+       ASSERT_EQ("3", TestFile.NameAltID);
+       
+       // Check the LANGUAGE parameter. 
+       
+       ASSERT_EQ("kw", TestFile.NameLanguage);
+       
+       // Check the SORT-AS parameter.
+        
+       ASSERT_EQ("Contact,Test", TestFile.NameDisplayAs);
 
+       // Check the extra tokens parameter.
+       
+       ASSERT_EQ("TEST=Yes", TestFile.NameTokens);
        
 }
 
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