public void TestRss2_0ParserWithFeedThree() { // A Rss_2_0_Parser parser = new Rss_2_0_Parser(); // A var feed = parser.Parse(File.ReadAllText(@"testData\rss2_feed_three.xml", Encoding.UTF8)); // A Assert.IsNotNull(feed); Assert.AreEqual(15, feed.Items.Count); Assert.AreEqual(RssVersion.Rss_2_0, feed.Version); }
public void TestRss2_0ParserWithFeedTwo() { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); // A Rss_2_0_Parser parser = new Rss_2_0_Parser(); // A var feed = parser.Parse(File.ReadAllText(@"testData\rss2_feed_two.xml", Encoding.UTF8)); // A Assert.IsNotNull(feed); Assert.AreEqual(60, feed.Items.Count); Assert.AreEqual(RssVersion.Rss_2_0, feed.Version); }