TEST_FIXTURE(EnchantDictionaryIsAdded_TestFixture, EnchantDictionaryIsAdded_WordExistsInPwlAndExclude_0) { ExternalAddWordToDictionary("hello"); ExternalAddWordToExclude("hello"); ReloadTestDictionary(); CHECK_EQUAL(0, enchant_dict_is_added(_dict, "hello", -1)); }
TEST_FIXTURE(EnchantDictionaryCheck_TestFixture, EnchantDictionaryCheck_WordInDictionaryAndExclude_1) { ExternalAddWordToExclude("hello"); ExternalAddWordToDictionary("hello"); ReloadTestDictionary(); CHECK_EQUAL(1, enchant_dict_check(_dict, "hello", -1)); }
TEST_FIXTURE(EnchantDictionarySuggestNotImplemented_TestFixture, EnchantDictionarySuggest_WordInDictionaryAndExclude_NotInSuggestions) { ExternalAddWordToExclude("hello"); ExternalAddWordToDictionary("hello"); ReloadTestDictionary(); size_t cSuggestions; _suggestions = enchant_dict_suggest(_dict, "helo", -1, &cSuggestions); CHECK(!_suggestions); CHECK_EQUAL(0, cSuggestions); }