Example #1
0
        public void Constructor_Sets_Correct_ContentType()
        {
            var feed = Builder <SyndicationFeed> .CreateNew().Build();

            var result = new AtomFeedResult(feed);

            Assert.AreEqual("application/atom+xml", result.ContentType);
        }
Example #2
0
        public void Class_Inherits_From_FeedResult()
        {
            var feed = Builder <SyndicationFeed> .CreateNew().Build();

            var result = new AtomFeedResult(feed);

            Assert.IsInstanceOf <FeedResult>(result);
        }
Example #3
0
        public void Constructor_Sets_Correct_Formatter()
        {
            var feed = Builder <SyndicationFeed> .CreateNew().Build();

            var result = new AtomFeedResult(feed);

            Assert.IsInstanceOf <Atom10FeedFormatter>(result.FeedFormatter);
            Assert.AreSame(feed, result.FeedFormatter.Feed);
        }