Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Unit Tests: Clean up of Common, ContactLoad and ContactSave tests
[xestiaab/.git] / source / tests / xestiaab_contactsave.h
index 0ddf8f9..c1f8b9a 100644 (file)
@@ -38,7 +38,7 @@ TEST(ContactSave, GivenAContactDataObjectWhenSaveStringIsCalledThenContactDataSa
        ContactDataObject testFile;
        
        ContactLoadStatus testFileLoadStatus = CONTACTLOAD_UNITTESTFAIL;
-       testFileLoadStatus = testFile1.LoadFile("LoadCheck-Load1.vcf");
+       testFileLoadStatus = testFile.LoadFile("LoadCheck-Load1.vcf");
        
        ASSERT_EQ(CONTACTLOAD_OK, testFileLoadStatus);
 
@@ -729,14 +729,14 @@ TEST(ContactSave, GivenSeveralContactFilesWhenLoadFileAndSaveFileIsCalledThenCon
        ContactDataObject testFile2;
        ContactDataObject testFile3;    
        
-       ContactLoadStatus testFile1SaveStatus = CONTACTSAVE_UNITTESTFAIL;
-       ContactSaveStatus testFile1LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+       ContactLoadStatus testFile1LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+       ContactSaveStatus testFile1SaveStatus = CONTACTSAVE_UNITTESTFAIL;
        
-       ContactLoadStatus testFile2SaveStatus = CONTACTSAVE_UNITTESTFAIL;
-       ContactSaveStatus testFile2LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+       ContactLoadStatus testFile2LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+       ContactSaveStatus testFile2SaveStatus = CONTACTSAVE_UNITTESTFAIL;
        
-       ContactLoadStatus testFile3SaveStatus = CONTACTSAVE_UNITTESTFAIL;
-       ContactSaveStatus testFile3LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+       ContactLoadStatus testFile3LoadStatus = CONTACTLOAD_UNITTESTFAIL;
+       ContactSaveStatus testFile3SaveStatus = CONTACTSAVE_UNITTESTFAIL;
        
        // When
        
@@ -771,7 +771,7 @@ TEST(ContactSave, GivenContactDataObjectWhenFileIsSavedToInvalidLocationThenErro
        ContactLoadStatus testFileLoadStatus = CONTACTLOAD_UNITTESTFAIL;
        ContactSaveStatus testFileSaveStatus = CONTACTSAVE_UNITTESTFAIL;
        
-       testFileLoadStatus = testFile1.LoadFile("LoadCheck-Load1.vcf");
+       testFileLoadStatus = testFile.LoadFile("LoadCheck-Load1.vcf");
        
        ASSERT_EQ(CONTACTLOAD_OK, testFileLoadStatus);
        
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