/// <summary>Generate an editable tree from <paramref name="text"/>, then try to realize that tree.</summary>
        public void ParseText(string text)
        {
            IElementTreeNode editableTree = FlexibleRealizerFactory.EditableTreeFrom(text);

            SetModel(editableTree);
            SelectNode(editableTree);
        }
Ejemplo n.º 2
0
 public void InAndAroundTheLake() => Assert.AreEqual(
     "in and around the lake",
     SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("in and around the lake")));
Ejemplo n.º 3
0
 public void WouldBe() => Assert.AreEqual("Would be.",
                                          SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("would be")));
Ejemplo n.º 4
0
 public void WillChange() => Assert.AreEqual("Will change.",
                                             SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("will change")));
Ejemplo n.º 5
0
 public void ShallOvercome() => Assert.AreEqual("Shall overcome.",
                                                SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("shall overcome")));
Ejemplo n.º 6
0
 public void MightBe() => Assert.AreEqual("Might be.",
                                          SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("might be")));
Ejemplo n.º 7
0
 public void IMayBeCrazy() => Assert.AreEqual("I may be crazy.",
                                              SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("i may be crazy")));
Ejemplo n.º 8
0
 public void ICouldPayYouBack() => Assert.AreEqual("I could pay you back.",
                                                   SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("i could pay you back")));
Ejemplo n.º 9
0
 public void IRanButTheyCaughtMe() => Assert.AreEqual("I ran but they caught me.",
                                                      SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("I ran but they caught me")));
Ejemplo n.º 10
0
 public void IRanBecauseIWasAfraid() => Assert.AreEqual("I ran because I was afraid.",
                                                        SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("I ran because I was afraid")));
Ejemplo n.º 11
0
 public void WorksHard() => Assert.AreEqual("Works hard.",
                                            SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("works hard")));
Ejemplo n.º 12
0
 public void RanVeryFast() => Assert.AreEqual("Ran very fast.",
                                              SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("ran very fast")));
Ejemplo n.º 13
0
 public void ThePresidentInadvertentlySpokeTheTruth() => Assert.AreEqual("The president inadvertently spoke the truth.",
                                                                         SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("the president inadvertently spoke the truth")));
Ejemplo n.º 14
0
 public void ACauseOfSufferingToHisParents() => Assert.AreEqual(
     "A cause of suffering to his parents.",
     SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("a cause of suffering to his parents")));
Ejemplo n.º 15
0
 public void OverTheRiverAndThroughTheWood() => Assert.AreEqual(
     "over the river and through the wood",
     SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("over the river and through the wood")));
Ejemplo n.º 16
0
 public void ICanTellTheQueenOfDiamonds() => Assert.AreEqual("I can tell the queen of diamonds.",
                                                             SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("i can tell the queen of diamonds")));
Ejemplo n.º 17
0
 public void CouldEnlist() => Assert.AreEqual("Could enlist.",
                                              SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("could enlist")));
Ejemplo n.º 18
0
 public void WasDestroyed() => Assert.AreEqual("Was destroyed.",
                                               SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("was destroyed")));
Ejemplo n.º 19
0
 public void YouMayBeRight() => Assert.AreEqual("You may be right.",
                                                SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("you may be right")));
 public void TheProsecutorWillUseTheBooksAsEvidence() => Assert.AreEqual("The prosecutor will use the books as evidence.",
                                                                         SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("the prosecutor will use the books as evidence")));
Ejemplo n.º 21
0
 public void MightAttend() => Assert.AreEqual("Might attend.",
                                              SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("might attend")));
Ejemplo n.º 22
0
 public void RunningAgainstTheDevil() => Assert.AreEqual("Running against the devil.",
                                                         SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("running against the devil")));
Ejemplo n.º 23
0
 public void MustRetreat() => Assert.AreEqual("Must retreat.",
                                              SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("must retreat")));
Ejemplo n.º 24
0
 public void StaringIntoTheSun() => Assert.AreEqual("Staring into the sun.",
                                                    SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("staring into the sun")));
Ejemplo n.º 25
0
 public void ShouldConcede() => Assert.AreEqual("Should concede.",
                                                SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("should concede")));
Ejemplo n.º 26
0
 public void Beautiful() => Assert.AreEqual(
     "Beautiful.",
     SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("beautiful")));
Ejemplo n.º 27
0
 public void CanPrevail() => Assert.AreEqual("Can prevail.",
                                             SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("can prevail")));
Ejemplo n.º 28
0
 public void AThinDarkYoungManOfNeuroticAndExcitedAspect() => Assert.AreEqual("A thin, dark, young man of neurotic and excited aspect.",
                                                                              SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("a thin, dark young man of neurotic and excited aspect")));
Ejemplo n.º 29
0
 public void WouldConsider() => Assert.AreEqual("Would consider.",
                                                SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("would consider")));
Ejemplo n.º 30
0
 public void TheEccentricSculptorResponsibleForThisApparentDisturbanceOfAnOldMansPeaceOfMind() => Assert.AreEqual("The eccentric sculptor responsible for this apparent disturbance of an old man's peace of mind.",
                                                                                                                  SimpleNLG.Client.Realize(FlexibleRealizerFactory.SpecFrom("the eccentric sculptor responsible for this apparent disturbance of an old man's peace of mind")));