TEST_FIXTURE(EnchantDictionarySuggest_TestFixture, EnchantDictionarySuggest_HasPreviousError_ErrorCleared) { SetErrorOnMockDictionary("something bad happened"); _suggestions = enchant_dict_suggest(_dict, "helo", -1, NULL); CHECK_EQUAL((void*)NULL, (void*)enchant_dict_get_error(_dict)); }
TEST_FIXTURE(EnchantDictionaryTestFixture, EnchantDictionaryGetError_HasPreviousError_Error) { std::string errorMessage("something bad happened"); SetErrorOnMockDictionary(errorMessage); CHECK_EQUAL(errorMessage.c_str(), enchant_dict_get_error(_dict)); }
TEST_FIXTURE(EnchantDictionaryIsAdded_TestFixture, EnchantDictionaryIsAdded_HasPreviousError_ErrorCleared) { SetErrorOnMockDictionary("something bad happened"); enchant_dict_is_added(_dict, "hello", -1); CHECK_EQUAL((void*)NULL, (void*)enchant_dict_get_error(_dict)); }
TEST_FIXTURE(EnchantDictFreeStringList_TestFixture, EnchantDictFreeStringList_HasPreviousError_ErrorCleared) { SetErrorOnMockDictionary("something bad happened"); enchant_dict_free_string_list(_dict, _string_list); _string_list = NULL; CHECK_EQUAL((void*)NULL, (void*)enchant_dict_get_error(_dict)); }