Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/PipingFailureMechanismPropertiesTest.cs =================================================================== diff -u -re73ee964a21f5bf7bb6ed2abfe7e5b3b7a79d32f -r1ba626831423fb5a7e00ef1b70fdc0f306324b5f --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/PipingFailureMechanismPropertiesTest.cs (.../PipingFailureMechanismPropertiesTest.cs) (revision e73ee964a21f5bf7bb6ed2abfe7e5b3b7a79d32f) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/PropertyClasses/PipingFailureMechanismPropertiesTest.cs (.../PipingFailureMechanismPropertiesTest.cs) (revision 1ba626831423fb5a7e00ef1b70fdc0f306324b5f) @@ -38,14 +38,14 @@ [TestFixture] public class PipingFailureMechanismPropertiesTest { - private const int namePropertyIndex = 0; - private const int codePropertyIndex = 1; - private const int groupPropertyIndex = 2; - private const int contributionPropertyIndex = 3; - private const int aPropertyIndex = 4; - private const int bPropertyIndex = 5; - private const int sectionLengthPropertyIndex = 6; - private const int nPropertyIndex = 7; + private const int namePropertyIndex = 7; + private const int codePropertyIndex = 6; + private const int groupPropertyIndex = 5; + private const int contributionPropertyIndex = 4; + private const int aPropertyIndex = 3; + private const int bPropertyIndex = 2; + private const int sectionLengthPropertyIndex = 1; + private const int nPropertyIndex = 0; [Test] public void Constructor_DataNull_ThrowArgumentNullException() @@ -61,7 +61,7 @@ // Assert var exception = Assert.Throws(Call); Assert.AreEqual("data", exception.ParamName); - + mocks.VerifyAll(); } @@ -79,7 +79,7 @@ // Assert var exception = Assert.Throws(Call); Assert.AreEqual("constructionProperties", exception.ParamName); - + mocks.VerifyAll(); } @@ -141,7 +141,17 @@ mocks.ReplayAll(); // Call - var properties = new PipingFailureMechanismProperties(failureMechanism, new PipingFailureMechanismProperties.ConstructionProperties(), assessmentSection); + var properties = new PipingFailureMechanismProperties(failureMechanism, new PipingFailureMechanismProperties.ConstructionProperties + { + NamePropertyIndex = namePropertyIndex, + CodePropertyIndex = codePropertyIndex, + GroupPropertyIndex = groupPropertyIndex, + ContributionPropertyIndex = contributionPropertyIndex, + APropertyIndex = aPropertyIndex, + BPropertyIndex = bPropertyIndex, + SectionLengthPropertyIndex = sectionLengthPropertyIndex, + NPropertyIndex = nPropertyIndex + }, assessmentSection); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); @@ -233,6 +243,7 @@ // Assert const string expectedMessage = "De waarde voor 'a' moet in het bereik [0,0, 1,0] liggen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(Call, expectedMessage); + mocks.VerifyAll(); } @@ -261,7 +272,7 @@ // Assert Assert.AreEqual(value, failureMechanism.PipingProbabilityAssessmentInput.A); - + mocks.VerifyAll(); } }