public void writeCallsWriterWritePlainLiteralOnceWithLanguage() { RdfWriterCounter writer = new RdfWriterCounter(); PlainLiteral instance = new PlainLiteral("whizz", "en"); instance.Write(writer); Assert.AreEqual( 1, writer.WritePlainLiteralLanguageCalled ); }
public void writeCallsWriterWriteTypedLiteralOnce() { RdfWriterCounter writer = new RdfWriterCounter(); TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); instance.Write(writer); Assert.AreEqual(1, writer.WriteTypedLiteralCalled); }
public void writeCallsWriterWriteUriRefOnce() { RdfWriterCounter writer = new RdfWriterCounter(); UriRef instance = new UriRef("http://example.com/subject"); instance.Write(writer); Assert.AreEqual(1, writer.WriteUriRefCalled); }
public void writeCallsWriterEndOutputOnce() { RdfWriterCounter writer = new RdfWriterCounter(); TripleStore store = MakeNewTripleStore(); store.Write(writer); Assert.AreEqual(1, writer.EndOutputCalled); store.Clear(); }