コード例 #1
0
ファイル: SpellTest.cs プロジェクト: softhor/NetSpell
        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);
        }
コード例 #2
0
ファイル: SpellTest.cs プロジェクト: AiimiLtd/NetSpell
        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");
        }
コード例 #3
0
 protected void IgnoreAllButton_Click(object sender, EventArgs e)
 {
     SpellChecker.IgnoreAllWord();
     SpellChecker.SpellCheck();
 }