ASSERT_EQ(CONVERTRESULT_OK, ConvertContact(wxT("vCard4"),
wxT("vCard3"),
wxT("LoadCheck-Load1.vcf"),
- wxT("LoadCheck-Load1-v3Conv.vcf")));
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
ASSERT_EQ(CONVERTRESULT_OK, ConvertContact(wxT("vCard3"),
wxT("vCard4"),
wxT("LoadCheck-Load1.vcf"),
- wxT("LoadCheck-Load1-v3Conv.vcf")));
+ wxT("Temp-LoadCheck-Load1-v4Conv.vcf")));
// Test that a matching input and output formats return
// an error.
ASSERT_EQ(CONVERTRESULT_FORMATSSAME, ConvertContact(wxT("vCard3"),
wxT("vCard3"),
wxT("LoadCheck-Load1.vcf"),
- wxT("LoadCheck-Load1-v3Conv.vcf")));
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
// Test that an invalid input format returns an error.
ASSERT_EQ(CONVERTRESULT_INVALIDINPUTFORMAT, ConvertContact(wxT("vCardNope"),
wxT("vCard3"),
wxT("LoadCheck-Load1.vcf"),
- wxT("LoadCheck-Load1-v3Conv.vcf")));
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
// Test that an invalid output format return an error.
ASSERT_EQ(CONVERTRESULT_INVALIDOUTPUTFORMAT, ConvertContact(wxT("vCard3"),
wxT("vCardNope"),
wxT("LoadCheck-Load1.vcf"),
- wxT("LoadCheck-Load1-v3Conv.vcf")));
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
- // Check that the file given exists.
+ // Check that the input file given exists.
ASSERT_EQ(CONVERTRESULT_INPUTFILEMISSING, ConvertContact(wxT("vCard3"),
wxT("vCard4"),
wxT("InvalidFile.vcf"),
wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
+ // Check that input file can't be opened.
+
ASSERT_EQ(CONVERTRESULT_INPUTFILEERROR, ConvertContact(wxT("vCard3"),
wxT("vCard4"),
wxT("InvalidPermissions.vcf"),
wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
+
+ // Check that the output file can't be opened.
+
+ ASSERT_EQ(CONVERTRESULT_OUTPUTFILEERROR, ConvertContact(wxT("vCard3"),
+ wxT("vCard4"),
+ wxT("LoadCheck-Load1.vcf"),
+ wxT("InvalidPermissions.vcf")));
}
\ No newline at end of file