예제 #1
0
        public void GetLexicalFormsTest1()
        {
            var adjectiveMorpher = new AdjectiveMorpher();
            var adjectiveForms   = new[] { "slow", "slower", "slowest" };

            foreach (var synthesizedForms in adjectiveForms.Select(adjectiveMorpher.GetLexicalForms))
            {
                Check.That(adjectiveForms.Except(synthesizedForms, StringComparer.OrdinalIgnoreCase)).IsEmpty();
            }
        }
예제 #2
0
        public void GetLexicalFormsTest4()
        {
            var adjectiveMorpher = new AdjectiveMorpher();

            string[] adjectiveForms = { "bloodthirsty-lamentationist", "bloodthirstier-lamentationist", "bloodthirstiest-lamentationist", };
            foreach (var synthesizedForms in from form in adjectiveForms
                     select adjectiveMorpher.GetLexicalForms(form))
            {
                Check.That(adjectiveForms.Except(synthesizedForms, StringComparer.OrdinalIgnoreCase)).IsEmpty();
            }
        }