Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added remaining property source code and unit tests for the FN vCard member for Conta...
[xestiaab/.git] / source / tests / xestiaab_contactload.h
index c8eca05..b3e53f4 100644 (file)
@@ -77,7 +77,7 @@ TEST(ContactLoad, ContactLoadTests){
        ASSERT_NE(TestFile.GroupsListPref.end(), TestFileIntIter);
        ASSERT_EQ(45, TestFileIntIter->second);
        
-       // Check that MEDIATYPE parameter.
+       // Check the MEDIATYPE parameter.
        
        TestFileIter = TestFile.GroupsListMediaType.find(0);
        ASSERT_NE(TestFile.GroupsListMediaType.end(), TestFileIter);
@@ -94,7 +94,43 @@ TEST(ContactLoad, ContactLoadTests){
        TestFileIter = TestFile.FullNamesList.find(0);
        ASSERT_NE(TestFile.FullNamesList.end(), TestFileIter);
        ASSERT_EQ("Test Contact", TestFileIter->second);
+       
+       // Check the TYPE parameter.
+
+       TestFileIter = TestFile.FullNamesListType.find(0);
+       ASSERT_NE(TestFile.FullNamesListType.end(), TestFileIter);
+       ASSERT_EQ("work", TestFileIter->second);
+       
+       // Check the LANGUAGE parameter.
+       
+       TestFileIter = TestFile.FullNamesListLanguage.find(0);
+       ASSERT_NE(TestFile.FullNamesListLanguage.end(), TestFileIter);
+       ASSERT_EQ("kw", TestFileIter->second);
+       
+       // Check the ALTID parameter.
+       
+       TestFileIter = TestFile.FullNamesListAltID.find(0);
+       ASSERT_NE(TestFile.FullNamesListAltID.end(), TestFileIter);
+       ASSERT_EQ("500", TestFileIter->second);
+
+       // Check the PID parameter.
 
+       TestFileIter = TestFile.FullNamesListPID.find(0);
+       ASSERT_NE(TestFile.FullNamesListPID.end(), TestFileIter);
+       ASSERT_EQ("40", TestFileIter->second);
+       
+       // Check the PREF parameter.
+       
+       TestFileIntIter = TestFile.FullNamesListPref.find(0);
+       ASSERT_NE(TestFile.FullNamesListPref.end(), TestFileIntIter);
+       ASSERT_EQ(45, TestFileIntIter->second);
+       
+       // Check for the extra tokens parameter.
+       
+       TestFileIter = TestFile.FullNamesListTokens.find(0);
+       ASSERT_NE(TestFile.FullNamesListTokens.end(), TestFileIter);
+       ASSERT_EQ("EXAMPLE=Baaa", TestFileIter->second);
+       
 }
 
 // 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