Example #1
0
        public void writeCallsWriterWriteUriRefWithCorrectArgument()
        {
            RdfWriterStore writer   = new RdfWriterStore();
            UriRef         instance = new UriRef("http://example.com/subject");

            instance.Write(writer);

            Assert.IsTrue(writer.WasWriteUriRefCalledWith("http://example.com/subject"));
        }
Example #2
0
        public void writeCallsWriterWriteUriRefOnce()
        {
            RdfWriterCounter writer   = new RdfWriterCounter();
            UriRef           instance = new UriRef("http://example.com/subject");

            instance.Write(writer);

            Assert.AreEqual(1, writer.WriteUriRefCalled);
        }