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(); } }
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(); } }