Esempio n. 1
0
        public void CanGetAtomLinkFromSyndicationLink()
        {
            // Act
            SyndicationLink slink = new SyndicationLink(new Uri("http://edit"), "edit", "Edit feed", "text/html", 0);
            AtomLink        link  = slink.Link();

            // Assert
            Assert.IsNotNull(link);

            Assert.AreEqual("http://edit/", link.HRef.AbsoluteUri);
            Assert.AreEqual("Edit feed", link.Title);
            Assert.AreEqual("edit", link.RelationType);
            Assert.AreEqual("text/html", (string)link.MediaType);
        }