예제 #1
0
 public void writeCallsWriterWritePlainLiteralWithCorrectArgumentsWithLanguage() {
   RdfWriterStore writer = new RdfWriterStore();
   PlainLiteral instance = new PlainLiteral("whizz", "gr");
   
   instance.Write(writer);
   
   Assert.IsTrue( writer.WasWritePlainLiteralCalledWith("whizz", "gr") );
 }
예제 #2
0
        public void writeCallsWriterWritePlainLiteralWithCorrectArgumentsWithLanguage()
        {
            RdfWriterStore writer   = new RdfWriterStore();
            TypedLiteral   instance = new TypedLiteral("whizz", "http://example.com/datatype");

            instance.Write(writer);

            Assert.IsTrue(writer.WasWriteTypedLiteralCalledWith("whizz", "http://example.com/datatype"));
        }
예제 #3
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"));
        }
예제 #4
0
        public void writeCallsWriterWriteBlankNodeWithSyntheticNodeLabel()
        {
            RdfWriterStore writer   = new RdfWriterStore();
            BlankNode      instance = new BlankNode();

            instance.Write(writer);

            Assert.IsTrue(writer.WasWriteBlankNodeCalledWith("spiral" + instance.GetHashCode()));
        }