public void ParseAndToString()
        {
            HeadedPhrase hp = HeadedPhrase.Parse("jan Mato tomo suli");

            Assert.IsTrue(hp.Contains(new Word("jan")));
            Assert.IsTrue(hp.Contains(new Word("Mato")));
            Assert.IsTrue(hp.Contains(new Word("tomo")));
            Assert.IsTrue(hp.Contains(new Word("suli")));
            Assert.AreEqual("jan Mato tomo suli", hp.ToString());
        }
 public void ParticleHeadWordWhut()
 {
     try
     {
         //li, pi, la, e, are illegal modifiers.
         HeadedPhrase hp = new HeadedPhrase(new Word("pi"), new WordSet(new[] { "lili", "suli", "li", "pi" }));
         Assert.AreEqual("jan lili suli li pi", hp.ToString());
     }
     catch (InvalidOperationException)
     {
         Assert.Pass();
         return;
     }
     catch (TpSyntaxException)
     {
         Assert.Pass();
         return;
     }
     Assert.Fail("Expected some sort of exception.");
 }
 public void ParticleModifiersWhut()
 {
     try
     {
         //li, pi, la, e, are illegal modifiers.
         HeadedPhrase hp = new HeadedPhrase(Words.jan, new WordSet(new[] { "lili", "suli", "li", "pi" }));
         Assert.AreEqual("jan lili suli li pi", hp.ToString());
     }
     catch (InvalidOperationException)
     {
         //Assert.Pass(); Throws SuccessException-- huh?
         return;
     }
     catch (TpSyntaxException)
     {
         //Assert.Pass(); Throws SuccessException-- huh?
         return;
     }
     Assert.Fail();
 }
        public void ThreeWordDoubleProperModifier()
        {
            HeadedPhrase hp = new HeadedPhrase(Words.jan, new WordSet(new[] { "Mato", "Maton" }));

            Assert.AreEqual("jan Mato Maton", hp.ToString()); //ti is illegal
        }
        public void TwoWordProperModifier()
        {
            HeadedPhrase hp = new HeadedPhrase(Words.jan, new WordSet(new[] { "Mato" }));

            Assert.AreEqual("jan Mato", hp.ToString());
        }
        public void TestToStringThreeWords()
        {
            HeadedPhrase hp = new HeadedPhrase(Words.jan, new WordSet(new [] { "lili", "suli" }));

            Assert.AreEqual("jan lili suli", hp.ToString());
        }