public void Parse() { var parsed = SemanticWikiParser.Parse(ApiResult); Assert.AreEqual( new DateTime(1977, 10, 27), parsed["н, Олександр"]["Birthday"].DateTime); Assert.IsNull(parsed["н, Олександр"]["Deathday"]); Assert.AreEqual( new DateTime(2013, 1, 1), parsed["a"]["Deathday"].DateTime); Assert.AreEqual( new DateTime(2013, 1, 1), parsed["a"].Get <PersonProperties>().Deathday); Assert.AreEqual( "a", parsed["a"].Get <PersonProperties>().Description); }
public void Get() { Assert.IsFalse(SemanticWikiParser.Get(_site, "[[Modification date::+]]|?Modification date") .Contains("readapidenied")); }