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 writeCallsWriterWriteUriRefOnce() { RdfWriterCounter writer = new RdfWriterCounter(); UriRef instance = new UriRef("http://example.com/subject"); instance.Write(writer); Assert.AreEqual(1, writer.WriteUriRefCalled); }