Пример #1
0
        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"));
        }
Пример #2
0
        public void writeCallsWriterWriteTypedLiteralOnce()
        {
            RdfWriterCounter writer   = new RdfWriterCounter();
            TypedLiteral     instance = new TypedLiteral("whizz", "http://example.com/datatype");

            instance.Write(writer);

            Assert.AreEqual(1, writer.WriteTypedLiteralCalled);
        }