コード例 #1
0
        public void the_resulting_feed_does_manage_to_write_some_xml()
        {
            theWriter.Write("application/atom+xml", new FeedTargetSource());

            output.ContentType.ShouldEqual("application/atom+xml");
            output.OutputStream().ReadAllText()
            .ShouldContain("<Item xmlns=\"\"><City>Dallas</City><Name>The second item</Name></Item>");
        }
コード例 #2
0
        public void the_resulting_feed_does_manage_to_write_some_xml()
        {
            var outputWriter = new InMemoryOutputWriter();

            theWriter.Write(outputWriter);

            outputWriter.ContentType.ShouldEqual(new FeedWithExtension().ContentType);
            outputWriter.ToString().ShouldContain("<Item xmlns=\"\"><City>Dallas</City><Name>The second item</Name></Item>");
        }