public void Then_OmittedPropertiesOnLocalLeaveAreInheritedFromParent() { Assert.IsNotNull(section); Assert.IsNotNull(section.LeafElementCollection); Assert.AreEqual(1, section.LeafElementCollection.Count); TestLeafConfigurationElement firstCollectionElement = section.LeafElementCollection.OfType <TestLeafConfigurationElement>().First(); Assert.AreEqual("p1", firstCollectionElement.OtherKeyPart); }
protected override void Arrange() { firstItem = new TestLeafConfigurationElement() { ID = Guid.NewGuid(), AnInt = 1, SomeOtherValue = "OtherValue1", OtherKeyPart = "OtherKeyPart1" }; secondItem = new TestLeafConfigurationElement() { ID = Guid.NewGuid(), AnInt = 2, SomeOtherValue = "OtherValue2", OtherKeyPart = "OtherKeyPart2" }; base.Arrange(); }