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