Esempio n. 1
0
        public void Should_ignore_overriden_parent_properties()
        {
            // given
            var child  = CreateEntity(typeof(IDerivedLevel2), new Uri("urn:in:child"));
            var parent = CreateEntity(typeof(IDerived), new Uri("urn:in:parent"));

            // when
            var provider = new InheritanceTreeProvider(child, parent.AsEnumerable());

            // then
            provider.Properties.Should().HaveCount(1);
            provider.Properties.Single().GetTerm(_ontology).Should().Be(new Uri("urn:in:child"));
        }
 public void Setup()
 {
     _provider = new TestingInheritanceTreeProvider();
 }