Esempio n. 1
0
        public void TestSuggestions()
        {
            SpellCheckService svc = new SpellCheckService();

            String text = "spelllt";

            List <String> suggestions = svc.GetSuggestions(text, null);

            Assert.IsNotNull(suggestions);

            Assert.IsTrue(suggestions.Count > 0);

            foreach (String suggestion in suggestions)
            {
                Assert.IsTrue(suggestion.StartsWith("sp"));
            }
        }