Esempio n. 1
0
        public void RDFFeedParser_should_generate_valid_Feed_details_for_Hacker_News_feed()
        {
            // Arrange
            XmlDocument xmlDoc = FakeXMLFeed.GetFakeXMLFeed("hackernews");
            RSSFeedParser rssFeedParser = new RSSFeedParser(xmlDoc);

            // Act
            Feed feed = rssFeedParser.ReadFeedDetails();

            // Assert
            Assert.AreEqual("Hacker News", feed.Name);
        }
Esempio n. 2
0
        public void RDFFeedParser_should_generate_valid_Feed_details_for_BBC_feed()
        {
            // Arrange
            XmlDocument xmlDoc = FakeXMLFeed.GetFakeXMLFeed("bbc");
            RSSFeedParser rssFeedParser = new RSSFeedParser(xmlDoc);

            // Act
            Feed feed = rssFeedParser.ReadFeedDetails();

            // Assert
            Assert.AreEqual("BBC News | News Front Page | UK Edition", feed.Name);
        }