Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added SORT-AS and extra tokens code and unit tests for the N vCard parameter in Conta...
[xestiaab/.git] / source / tests / xestiaab_contactload.h
index b3e53f4..c573175 100644 (file)
@@ -131,6 +131,26 @@ TEST(ContactLoad, ContactLoadTests){
        ASSERT_NE(TestFile.FullNamesListTokens.end(), TestFileIter);
        ASSERT_EQ("EXAMPLE=Baaa", TestFileIter->second);
        
+       // Check that the name has been read (N).
+       
+       ASSERT_EQ("Test", TestFile.NameForename);
+       
+       // 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);
+       
 }
 
 // TODO: Add tests for the Contact Loading process.
\ No newline at end of file
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