+ // Then
+
+ ASSERT_NE(testFile.FullNamesListTokens.end(), testFileIter);
+ ASSERT_EQ("EXAMPLE=Baaa", testFileIter->second);
+
+}
+
+TEST(ContactLoad, GivenContactDataObjectWhenNameValuesAreRetrievedThenValuesForNameIsReturned)
+{
+
+ // Check that the name has been read for N.
+
+ std::map<int,wxString>::iterator testFileIter;
+ std::map<int,int>::iterator testFileIntIter;
+ ContactDataObject testFile;
+
+ // Given
+
+ ContactLoadStatus testFileLoadStatus = testFile.LoadFile("LoadCheck-Load4.vcf");
+ ASSERT_EQ(CONTACTLOAD_OK, testFileLoadStatus);
+
+ // When
+
+ wxString nameSurname = testFile.NameSurname;
+ wxString nameForename = testFile.NameForename;
+ wxString nameOtherNames = testFile.NameOtherNames;
+ wxString nameTitle = testFile.NameTitle;
+ wxString nameSuffix = testFile.NameSuffix;
+
+ // Then
+
+ ASSERT_EQ("Contact", nameSurname);
+ ASSERT_EQ("Test", nameForename);
+ ASSERT_EQ("Example", nameOtherNames);
+ ASSERT_EQ("Robot", nameTitle);
+ ASSERT_EQ("LOONY", nameSuffix);
+
+}
+
+TEST(ContactLoad, GivenContactDataObjectWhenNameAltIDIsRetrievedThenValueforNameAltIDIsReturned)
+{
+
+ // Check the ALTID parameter for N.
+
+ std::map<int,wxString>::iterator testFileIter;
+ std::map<int,int>::iterator testFileIntIter;
+ ContactDataObject testFile;
+
+ // Given
+
+ ContactLoadStatus testFileLoadStatus = testFile.LoadFile("LoadCheck-Load4.vcf");
+ ASSERT_EQ(CONTACTLOAD_OK, testFileLoadStatus);
+
+ // When
+
+ wxString nameAltID = testFile.NameAltID;
+
+ // Then
+
+ ASSERT_EQ("3", nameAltID);
+
+}
+
+TEST(ContactLoad, GivenContactDataObjectWhenNameLanguageIsRetrievedThenValueforNameLanguageIsReturned)
+{
+
+ // Check the LANGUAGE parameter for N.
+
+ std::map<int,wxString>::iterator testFileIter;
+ std::map<int,int>::iterator testFileIntIter;
+ ContactDataObject testFile;
+
+ // Given
+
+ ContactLoadStatus testFileLoadStatus = testFile.LoadFile("LoadCheck-Load4.vcf");
+ ASSERT_EQ(CONTACTLOAD_OK, testFileLoadStatus);