}
+ wxFile InputFile;
+
+ if (!InputFile.Open(InputFilename, wxFile::read, wxS_DEFAULT)){
+
+ int InputFileErrNo = InputFile.GetLastError();
+
+ return CONVERTRESULT_INPUTFILEERROR;
+
+ }
+
return CONVERTRESULT_OK;
}
\ No newline at end of file
ASSERT_EQ(CONVERTRESULT_INPUTFILEMISSING, ConvertContact(wxT("vCard3"),
wxT("vCard4"),
wxT("InvalidFile.vcf"),
- wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
+
+ ASSERT_EQ(CONVERTRESULT_INPUTFILEERROR, ConvertContact(wxT("vCard3"),
+ wxT("vCard4"),
+ wxT("InvalidPermissions.vcf"),
+ wxT("Temp-LoadCheck-Load1-v3Conv.vcf")));
}
\ No newline at end of file