public void ConjunctionPhraseConstructorTest() { IEnumerable <Word> composedWords = new[] { new Conjunction("or") }; var target = new ConjunctionPhrase(composedWords); Check.That(target.Text).IsEqualTo(string.Join(" ", composedWords.Select(w => w.Text))); }
public void JoinedRightTest() { IEnumerable <Word> composedWords = new[] { new Conjunction("and") }; var target = new ConjunctionPhrase(composedWords); ILexical expected = new CommonPluralNoun("pies"); ILexical actual; target.JoinedRight = expected; actual = target.JoinedRight; Check.That(actual).IsEqualTo(expected); }
public void JoinedLeftTest() { IEnumerable <Word> composedWords = new[] { new Conjunction("and") }; var target = new ConjunctionPhrase(composedWords); ILexical expected = new NounPhrase(new[] { new CommonSingularNoun("cake") }); ILexical actual; target.JoinedLeft = expected; actual = target.JoinedLeft; Check.That(actual).IsEqualTo(expected); }