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")); }
public void writeCallsWriterWriteTypedLiteralOnce() { RdfWriterCounter writer = new RdfWriterCounter(); TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); instance.Write(writer); Assert.AreEqual(1, writer.WriteTypedLiteralCalled); }