public void TestGetParse() { var wn1 = new WordNode("Eat", PartOfSpeechTag.Verb); var wn2 = new WordNode("More", PartOfSpeechTag.NounModifier); var wn3 = new WordNode("Chicken", PartOfSpeechTag.Noun); var words = new WordNode[] { wn1, wn2, wn3 }; PhraseNode pn = new PhraseNode(words, Location.Name, true); var parse = pn.GetParse(); Assert.AreEqual(pn, parse); }
public void TestGetParse() { var wn1 = new WordNode("Eat", PartOfSpeechTag.Verb); var wn2 = new WordNode("More", PartOfSpeechTag.NounModifier); var wn3 = new WordNode("Chicken", PartOfSpeechTag.Noun); var words = new WordNode[] {wn1, wn2, wn3}; PhraseNode pn = new PhraseNode(words, Location.Name, true); var parse = pn.GetParse(); Assert.AreEqual(pn, parse); }