public void GetFeed_emptyStr_log() { RSSAtomFeed c = new RSSAtomFeed("uniqIdCollection", new SyndicationFeed()); c.AddFeed(new RSSAtomItem("uniqIdFeed", "description", "text", "http:\\someurl.com", "title", DateTime.MinValue)); RSSAtomItem result = c.GetFeed(""); StringAssert.Contains(logger.Message, $"must be not empty string"); }
public void GetFeed_valigStr_2EqualObj() { RSSAtomFeed c = new RSSAtomFeed("uniqIdCollection", new SyndicationFeed()); c.AddFeed(new RSSAtomItem("uniqIdFeed", "description", "text", "http:\\someurl.com", "title", DateTime.MinValue)); RSSAtomItem expectedValue = new RSSAtomItem("uniqIdFeed", "description", "text", "http:\\someurl.com", "title", DateTime.MinValue); RSSAtomItem result = c.GetFeed("uniqIdFeed"); Assert.AreEqual(expectedValue, result); }