示例#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()));
        }