Пример #1
0
        public void writerMapsNodeIdsToNewValues()
        {
            XmlWriterStore xmlWriter = new XmlWriterStore();
            RdfXmlWriter   rdfWriter = new RdfXmlWriter(xmlWriter);

            rdfWriter.RegisterNamespacePrefix("http://example.com/", "ex");

            rdfWriter.StartOutput();
            rdfWriter.StartSubject();
            rdfWriter.WriteBlankNode("foo");
            rdfWriter.StartPredicate();
            rdfWriter.WriteUriRef("http://example.com/pred");
            rdfWriter.StartObject();
            rdfWriter.WriteUriRef("http://example.com/obj");
            rdfWriter.EndObject();
            rdfWriter.EndPredicate();
            rdfWriter.EndSubject();
            rdfWriter.EndOutput();

            Assert.IsFalse(xmlWriter.WasWriteStringCalledWith("foo"), "attribute content");
        }