コード例 #1
0
        public void AtomPublishingControl_CreateXmlTest()
        {
            var    itunes   = CreateExtension1();
            var    actual   = ExtensionTestUtil.AddExtensionToXml(itunes).Trim();
            string expected = ExtensionTestUtil.GetWrappedXml(namespc, strExtXml).Trim();

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void FeedRank_CreateXmlTest()
        {
            var re = CreateExtension1();

            var    actual   = ExtensionTestUtil.AddExtensionToXml(re);
            string expected = ExtensionTestUtil.GetWrappedXml(namespc, strExtXml);

            Assert.AreEqual(expected, actual);
        }
        public void CreativeCommons_CreateXmlTest()
        {
            var itunes = CreateExtension1();

            var    actual   = ExtensionTestUtil.AddExtensionToXml(itunes);
            string expected = ExtensionTestUtil.GetWrappedXml(namespc, strExtXml);

            Assert.AreEqual(expected, actual);
        }
コード例 #4
0
        public void DublinCoreElementSet_CreateXmlTest()
        {
            var dub = CreateExtension1();

            var    actual   = ExtensionTestUtil.AddExtensionToXml(dub);
            string expected = ExtensionTestUtil.GetWrappedXml(namespc, strExtXml);

            Assert.AreEqual(expected, actual);
        }
        public void BasicGeocoding_CreateXmlTest()
        {
            var geo = new BasicGeocodingSyndicationExtension();

            geo.Context.Latitude  = 41.0m;
            geo.Context.Longitude = -74.12m;

            var    actual   = ExtensionTestUtil.AddExtensionToXml(geo);
            string expected = ExtensionTestUtil.GetWrappedXml(namespc, strExtXml);

            Assert.AreEqual(expected, actual);
        }
コード例 #6
0
        public void Pheed_CreateXmlTest()
        {
            var pheed = new PheedSyndicationExtension();

            pheed.Context.Source    = new Uri("http://www.example.com");
            pheed.Context.Thumbnail = new Uri("http://www.example.com/thumbnail.jpg");

            var    actual   = ExtensionTestUtil.AddExtensionToXml(pheed);
            string expected = ExtensionTestUtil.GetWrappedXml(namespc, strExtXml);

            Assert.AreEqual(expected, actual);
        }