Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Initial version of the SaveString function of the ContactDataObject
[xestiaab/.git] / source / tests / xestiaab_contactsave.h
index d243005..46608f2 100644 (file)
 
 #include <gtest/gtest.h>
 
-// TODO: Add tests for the Contact Saving process.
\ No newline at end of file
+#include "../contacteditor/cdo/ContactDataObject.h"
+
+TEST(ContactSave, ContactSaveTests){
+       
+       ContactDataObject TestFile1;
+       wxString SaveData;
+       
+       ASSERT_EQ(CONTACTLOAD_OK, TestFile1.LoadFile("LoadCheck-Load1.vcf"));
+       
+       ASSERT_EQ(CONTACTSAVE_OK, TestFile1.SaveString(&SaveData));
+       
+}
\ 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