/// <summary>
        ///     Add suggested words for misspelled words to the combo box.
        /// </summary>
        /// <created>art2m,5/12/2019</created>
        /// <changed>art2m,5/12/2019</changed>
        private void AddSuggestions()
        {
            var swc = new SuggestedWordsCollection();

            this.cboWord.Items.Clear();

            for (var index = 0; index < swc.ItemsCount(); index++)
            {
                this.cboWord.Items.Add(swc.GetItemAt(index));
            }

            swc.ClearCollection();
            this.cboWord.DroppedDown = true;
        }
Beispiel #2
0
        public void CheckDictionary_ValidateSuggestionsFound()
        {
            var collSugWords = new SuggestedWordsCollection();
            var slc          = new SpellingListClass();

            // Arrange
            const string Word = "finnd";

            // Act
            slc.CheckDictionary(Word);
            var retVal = collSugWords.ItemsCount();

            // Assert
            Assert.AreNotEqual(retVal, 0, "retVal should be larger as it should have a list of words.");
        }