X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fxestiaab_contactload.h;h=c573175a849caa464152d12faaa8b847728655b1;hb=b19bbc6c6d83edfefba9c98e78a57d21eb8aa1a8;hp=b3e53f48f1a85480cfef3f7e639cd73ffb20bf6a;hpb=5ab6af24eb42838438875f9c7af77210ccfa44a8;p=xestiaab%2F.git diff --git a/source/tests/xestiaab_contactload.h b/source/tests/xestiaab_contactload.h index b3e53f4..c573175 100644 --- a/source/tests/xestiaab_contactload.h +++ b/source/tests/xestiaab_contactload.h @@ -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