Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/StochasticSoilModelPropertiesTest.cs =================================================================== diff -u -r650fc7b43cb6729baee51d079f0377df8d7a3de9 -r6a241363ac2d257e8012cb6336d66a8e9e350b8d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/StochasticSoilModelPropertiesTest.cs (.../StochasticSoilModelPropertiesTest.cs) (revision 650fc7b43cb6729baee51d079f0377df8d7a3de9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PropertyClasses/StochasticSoilModelPropertiesTest.cs (.../StochasticSoilModelPropertiesTest.cs) (revision 6a241363ac2d257e8012cb6336d66a8e9e350b8d) @@ -34,11 +34,9 @@ [TestFixture] public class StochasticSoilModelPropertiesTest { - private const int stochasticSoilModelIdPropertyIndex = 0; - private const int stochasticSoilModelNamePropertyIndex = 1; - private const int stochasticSoilModelSegmentNamePropertyIndex = 2; - private const int stochasticSoilModelGeometryPropertyIndex = 3; - private const int stochasticSoilModelStochasticSoilProfilesPropertyIndex = 4; + private const int stochasticSoilModelNamePropertyIndex = 0; + private const int stochasticSoilModelGeometryPropertyIndex = 1; + private const int stochasticSoilModelStochasticSoilProfilesPropertyIndex = 2; [Test] public void DefaultConstructor_ExpectedValues() @@ -75,8 +73,6 @@ // Assert Assert.AreEqual(stochasticSoilModel.Name, properties.Name); - Assert.AreEqual(stochasticSoilModel.SegmentName, properties.SegmentName); - Assert.AreEqual(stochasticSoilModel.Id, properties.Id); Assert.AreEqual(stochasticSoilModel.Geometry[0], properties.Geometry[0]); Assert.IsInstanceOf(properties.StochasticSoilProfiles); @@ -107,29 +103,15 @@ // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); - Assert.AreEqual(5, dynamicProperties.Count); + Assert.AreEqual(3, dynamicProperties.Count); - PropertyDescriptor stochasticSoilModelIdProperty = dynamicProperties[stochasticSoilModelIdPropertyIndex]; - Assert.IsNotNull(stochasticSoilModelIdProperty); - Assert.IsTrue(stochasticSoilModelIdProperty.IsReadOnly); - Assert.AreEqual("Algemeen", stochasticSoilModelIdProperty.Category); - Assert.AreEqual("ID", stochasticSoilModelIdProperty.DisplayName); - Assert.AreEqual("ID van het stochastische ondergrondmodel in de database.", stochasticSoilModelIdProperty.Description); - PropertyDescriptor stochasticSoilModelNameProperty = dynamicProperties[stochasticSoilModelNamePropertyIndex]; Assert.IsNotNull(stochasticSoilModelNameProperty); Assert.IsTrue(stochasticSoilModelNameProperty.IsReadOnly); Assert.AreEqual("Algemeen", stochasticSoilModelNameProperty.Category); Assert.AreEqual("Naam", stochasticSoilModelNameProperty.DisplayName); Assert.AreEqual("Naam van het stochastische ondergrondmodel.", stochasticSoilModelNameProperty.Description); - PropertyDescriptor stochasticSoilModelSegmentNameProperty = dynamicProperties[stochasticSoilModelSegmentNamePropertyIndex]; - Assert.IsNotNull(stochasticSoilModelSegmentNameProperty); - Assert.IsTrue(stochasticSoilModelSegmentNameProperty.IsReadOnly); - Assert.AreEqual("Algemeen", stochasticSoilModelSegmentNameProperty.Category); - Assert.AreEqual("Segment naam", stochasticSoilModelSegmentNameProperty.DisplayName); - Assert.AreEqual("Naam van het stochastische ondergrondmodel segment.", stochasticSoilModelSegmentNameProperty.Description); - PropertyDescriptor stochasticSoilModelGeometryProperty = dynamicProperties[stochasticSoilModelGeometryPropertyIndex]; Assert.IsNotNull(stochasticSoilModelGeometryProperty); Assert.IsTrue(stochasticSoilModelGeometryProperty.IsReadOnly);