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 CanSerialize() { HeadedPhrase hp = HeadedPhrase.Parse("jan Mato tomo suli"); Assert.NotNull(hp.ToJsonDcJs()); }