Пример #1
0
        public void getHashCodeReturnsDifferentCodeForDifferentInstances()
        {
            BlankNode instance = new BlankNode();
            BlankNode other    = new BlankNode();

            Assert.IsFalse(instance.GetHashCode() == other.GetHashCode());
        }
Пример #2
0
        public void writeCallsWriterWriteBlankNodeWithSyntheticNodeLabel()
        {
            RdfWriterStore writer   = new RdfWriterStore();
            BlankNode      instance = new BlankNode();

            instance.Write(writer);

            Assert.IsTrue(writer.WasWriteBlankNodeCalledWith("spiral" + instance.GetHashCode()));
        }