Exemplo n.º 1
0
        public void IgnoreAllWord()
        {
            Spelling _SpellChecker = NewSpellChecker();

            _SpellChecker.Text = "this is a tst of a tst errr";

            _SpellChecker.SpellCheck();
            Assertion.AssertEquals("Incorrect WordOffset", 3, _SpellChecker.WordIndex);
            Assertion.AssertEquals("Incorrect CurrentWord", "tst", _SpellChecker.CurrentWord);
            _SpellChecker.IgnoreAllWord();

            _SpellChecker.SpellCheck();
            Assertion.AssertEquals("Incorrect WordOffset", 7, _SpellChecker.WordIndex);
            Assertion.AssertEquals("Incorrect CurrentWord", "errr", _SpellChecker.CurrentWord);
        }
Exemplo n.º 2
0
        public void IgnoreAllWord()
        {
            Spelling _SpellChecker = NewSpellChecker();

            _SpellChecker.Text = "this is a tst of a tst errr";

            _SpellChecker.SpellCheck();
            Assert.True(3 == _SpellChecker.WordIndex, "Incorrect WordOffset");
            Assert.True("tst" == _SpellChecker.CurrentWord, "Incorrect CurrentWord");
            _SpellChecker.IgnoreAllWord();

            _SpellChecker.SpellCheck();
            Assert.True(7 == _SpellChecker.WordIndex, "Incorrect WordOffset");
            Assert.True("errr" == _SpellChecker.CurrentWord, "Incorrect CurrentWord");
        }
 protected void IgnoreAllButton_Click(object sender, EventArgs e)
 {
     SpellChecker.IgnoreAllWord();
     SpellChecker.SpellCheck();
 }