+ ContactLoadStatus testFile1SaveStatus = CONTACTSAVE_UNITTESTFAIL;
+ ContactSaveStatus testFile1LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+
+ ContactLoadStatus testFile2SaveStatus = CONTACTSAVE_UNITTESTFAIL;
+ ContactSaveStatus testFile2LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+
+ ContactLoadStatus testFile3SaveStatus = CONTACTSAVE_UNITTESTFAIL;
+ ContactSaveStatus testFile3LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+
+ // When
+
+ testFile1LoadStatus = testFile1.LoadFile("LoadCheck-Load1.vcf");
+ testFile1SaveStatus = testFile1.SaveFile("SaveCheck-Save1.vcf");
+
+ testFile2LoadStatus = testFile2.LoadFile("LoadCheck-Load2.vcf");
+ testFile2SaveStatus = testFile2.SaveFile("SaveCheck-Save2.vcf");
+
+ testFile3LoadStatus = testFile3.LoadFile("LoadCheck-Load4.vcf");
+ testFile3SaveStatus = testFile3.SaveFile("SaveCheck-Save4.vcf");
+
+ // Then
+
+ ASSERT_EQ(CONTACTLOAD_OK, testFile1LoadStatus);
+ ASSERT_EQ(CONTACTSAVE_OK, testFile1SaveStatus);
+
+ ASSERT_EQ(CONTACTLOAD_OK, testFile1LoadStatus);
+ ASSERT_EQ(CONTACTSAVE_OK, testFile1SaveStatus);
+
+ ASSERT_EQ(CONTACTLOAD_OK, testFile3.LoadFile("LoadCheck-Load4.vcf"));
+ ASSERT_EQ(CONTACTSAVE_OK, testFile3.SaveFile("SaveCheck-Save4.vcf"));
+
+}
+
+TEST(ContactSave, GivenContactDataObjectWhenFileIsSavedToInvalidLocationThenErrorResultIsReturned)
+{