Exemplo n.º 1
0
        public void LoadRssFeeds_CorrectInput_ReturnsRssFeed()
        {
            IFileController stubFileController = new Stubs.StubFileController();
            IXmlController  stubXmlController  = new Stubs.StubXmlController();

            _rssController.FileController = stubFileController;
            _rssController.XmlController  = stubXmlController;

            Assert.AreEqual("APO Rss", _rssController.LoadRssFeeds()[0].Title, "Title of the first RssFeed does not match.");
        }
        public void LoadRssFeeds_CorrectInput_ReturnsRssFeed()
        {
            IFileController stubFileController = new Stubs.StubFileController();
            IXmlController stubXmlController = new Stubs.StubXmlController();

            _rssController.FileController = stubFileController;
            _rssController.XmlController = stubXmlController;

            Assert.AreEqual("APO Rss", _rssController.LoadRssFeeds()[0].Title, "Title of the first RssFeed does not match.");
        }