X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fxestiaab_common.h;h=248582e8f69b5ac24c7cfdff56e51f057eb5d864;hb=d4087a12e1dccd74c089f2583500578fa5e59212;hp=7beaa1b2ced761f259b00b8e9b420e05af64ab68;hpb=5c86cf71f29dd36e792a80526d10f5d9244712bf;p=xestiaab%2F.git diff --git a/source/tests/xestiaab_common.h b/source/tests/xestiaab_common.h index 7beaa1b..248582e 100644 --- a/source/tests/xestiaab_common.h +++ b/source/tests/xestiaab_common.h @@ -151,4 +151,30 @@ TEST(CommonFunctions, GetAccountDirCertificate){ #endif +} + +TEST(CommonFunctions, GetAccountsFile){ + + // Run the unit tests depending on the operating system being used. + +#if defined(__WIN32__) + +#elif defined(__APPLE__) + +#else + + // Setup for comparison purposes. Should be + // /home//.xestiaab/preferences/accounts + + wxString AccountsFileCheck = ""; + AccountsFileCheck.Clear(); + AccountsFileCheck.Append(wxString::FromUTF8(getenv("HOME"))); + AccountsFileCheck.Append(wxT("/.xestiaab/preferences/accounts")); + + wxString AccountsFile = GetAccountsFile(); + + ASSERT_EQ(AccountsFile, AccountsFileCheck); + +#endif + } \ No newline at end of file