public void writeCallsWriterWritePlainLiteralWithCorrectArgumentsWithLanguage() { RdfWriterStore writer = new RdfWriterStore(); PlainLiteral instance = new PlainLiteral("whizz", "gr"); instance.Write(writer); Assert.IsTrue( writer.WasWritePlainLiteralCalledWith("whizz", "gr") ); }
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 writeCallsWriterWriteUriRefWithCorrectArgument() { RdfWriterStore writer = new RdfWriterStore(); UriRef instance = new UriRef("http://example.com/subject"); instance.Write(writer); Assert.IsTrue(writer.WasWriteUriRefCalledWith("http://example.com/subject")); }
public void writeCallsWriterWriteBlankNodeWithSyntheticNodeLabel() { RdfWriterStore writer = new RdfWriterStore(); BlankNode instance = new BlankNode(); instance.Write(writer); Assert.IsTrue(writer.WasWriteBlankNodeCalledWith("spiral" + instance.GetHashCode())); }