public void writeCallsWriterWritePlainLiteralWithCorrectArgumentsWithLanguage() { RdfWriterStore writer = new RdfWriterStore(); PlainLiteral instance = new PlainLiteral("whizz", "gr"); instance.Write(writer); Assert.IsTrue( writer.WasWritePlainLiteralCalledWith("whizz", "gr") ); }
public void writeCallsWriterWritePlainLiteralOnceWithLanguage() { RdfWriterCounter writer = new RdfWriterCounter(); PlainLiteral instance = new PlainLiteral("whizz", "en"); instance.Write(writer); Assert.AreEqual( 1, writer.WritePlainLiteralLanguageCalled ); }