public void ContainsKey_searches_uri_nodes()
        {
            var d = new DynamicGraph();

            d.LoadFromString("<urn:s> <urn:p> <urn:o> .");

            var s = UriFactory.Create("urn:s");
            var p = UriFactory.Create("urn:p");
            var o = UriFactory.Create("urn:o");

            Assert.True(d.ContainsKey(s));
            Assert.False(d.ContainsKey(p));
            Assert.True(d.ContainsKey(o));
        }
        public void ContainsKey_rejects_null_key()
        {
            var d = new DynamicGraph();

            Assert.False(d.ContainsKey(null as Uri));
        }
예제 #3
0
        public void ContainsKey_rejects_null_subject()
        {
            var d = new DynamicGraph();

            Assert.False(d.ContainsKey(null as INode));
        }