Index: Riskeer/Common/src/Riskeer.Common.Forms/Helpers/ProbabilityFormattingHelper.cs =================================================================== diff -u -ref7d25537327166e760b4077dffe51345f6b5616 -r3cc92efc564836ab92d661799fd6eac0b21d00d9 --- Riskeer/Common/src/Riskeer.Common.Forms/Helpers/ProbabilityFormattingHelper.cs (.../ProbabilityFormattingHelper.cs) (revision ef7d25537327166e760b4077dffe51345f6b5616) +++ Riskeer/Common/src/Riskeer.Common.Forms/Helpers/ProbabilityFormattingHelper.cs (.../ProbabilityFormattingHelper.cs) (revision 3cc92efc564836ab92d661799fd6eac0b21d00d9) @@ -33,7 +33,7 @@ /// /// Formats the specified probability. /// - /// The probability. + /// The probability to format. /// The formatted text. /// Thrown when the probability cannot be formatted as a string. public static string Format(double probability) @@ -52,7 +52,7 @@ /// Formats the specified probability, including the discrete numbers , /// and . /// - /// The probability. + /// The probability to format. /// The formatted text. /// Thrown when the probability cannot be formatted as a string. public static string FormatWithDiscreteNumbers(double probability) @@ -78,7 +78,7 @@ /// /// Formats the specified return period to a probability. /// - /// The return period. + /// The return period to format. /// The formatted text. /// Thrown when the return period cannot be formatted as a string. public static string FormatFromReturnPeriod(int returnPeriod) Index: Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/FailureMechanismResultViewTest.cs =================================================================== diff -u -r4b3fc99b19f5081d48166139f78daf6a1909d32d -r3cc92efc564836ab92d661799fd6eac0b21d00d9 --- Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/FailureMechanismResultViewTest.cs (.../FailureMechanismResultViewTest.cs) (revision 4b3fc99b19f5081d48166139f78daf6a1909d32d) +++ Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/FailureMechanismResultViewTest.cs (.../FailureMechanismResultViewTest.cs) (revision 3cc92efc564836ab92d661799fd6eac0b21d00d9) @@ -187,7 +187,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenFailureMechanismNotifiesObservers_ThenDataGridViewUpdatedAndPerformsAssemblyCalculation() + public void GivenFailureMechanismResultView_WhenFailureMechanismObserversNotified_ThenDataGridViewUpdatedAndPerformsAssemblyCalculation() { // Given FailureMechanismSectionResult sectionResult = FailureMechanismSectionResultTestFactory.CreateFailureMechanismSectionResult(); @@ -223,7 +223,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenFailureMechanismSectionResultCollectionUpdatedAndNotifiesObservers_ThenDataGridViewUpdatedAndPerformsAssemblyCalculation() + public void GivenFailureMechanismResultView_WhenFailureMechanismSectionResultCollectionUpdatedAndObserversNotified_ThenDataGridViewUpdatedAndPerformsAssemblyCalculation() { // Given var sectionResults = new ObservableList(); @@ -255,7 +255,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenSingleFailureMechanismSectionResultNotifiesObservers_ThenDataGridViewInvalidatedAndPerformsAssemblyCalculation() + public void GivenFailureMechanismResultView_WhenSingleFailureMechanismSectionResultObserversNotified_ThenDataGridViewInvalidatedAndAssemblyCalculationPerformed() { // Given var random = new Random(21); @@ -330,7 +330,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenRowUpdatingAndSectionResultNotified_ThenNothingUpdates() + public void GivenFailureMechanismResultView_WhenRowUpdatingAndSectionResultObserversNotified_ThenNothingUpdates() { // Given FailureMechanismSectionResult sectionResult = FailureMechanismSectionResultTestFactory.CreateFailureMechanismSectionResult(); @@ -363,7 +363,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenSectionResultNotified_ThenAllRowsUpdatedAndViewInvalidated() + public void GivenFailureMechanismResultView_WhenSectionResultObserversNotified_ThenAllRowsUpdatedAndViewInvalidated() { // Given FailureMechanismSectionResult sectionResult1 = FailureMechanismSectionResultTestFactory.CreateFailureMechanismSectionResult(); @@ -428,7 +428,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenSectionResultNotified_ThenColumnDoesAutoResize() + public void GivenFailureMechanismResultView_WhenSectionResultObserversNotified_ThenColumnDoesAutoResize() { // Given FailureMechanismSectionResult sectionResult = FailureMechanismSectionResultTestFactory.CreateFailureMechanismSectionResult(); @@ -458,7 +458,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenResultRemovedAndSectionResultsNotified_ThenEventHandlersDisconnected() + public void GivenFailureMechanismResultView_WhenResultRemovedAndSectionResultsObserversNotified_ThenEventHandlersDisconnected() { // Given FailureMechanismSectionResult sectionResult = FailureMechanismSectionResultTestFactory.CreateFailureMechanismSectionResult(); @@ -674,7 +674,7 @@ } [Test] - public void GivenFailureMechanismResultView_WhenCalculatorFails_ThenSetsDefaultFailurePathAssemblyProbabilityWithError() + public void GivenFailureMechanismResultView_WhenCalculatorFails_ThenDefaultFailurePathAssemblyProbabilitySetWithError() { // Given var failureMechanism = new TestFailureMechanism @@ -789,7 +789,7 @@ } [Test] - public void GivenFailureMechanismResultViewAndProbabilityResultTypeAutomatic_WhenProbabilityResultTypeSetToManual_ThenSetsFailurePathAssemblyProbabilityTextBoxWithCorrectStateAndNotifiesObservers() + public void GivenFailureMechanismResultViewAndProbabilityResultTypeAutomatic_WhenProbabilityResultTypeSetToManual_ThenFailurePathAssemblyProbabilityTextBoxSetWithCorrectStateAndObserversNotified() { // Given var mocks = new MockRepository(); @@ -833,7 +833,7 @@ [SetCulture("nl-NL")] [TestCase(FailurePathAssemblyProbabilityResultType.Automatic, FailurePathAssemblyProbabilityResultType.Manual)] [TestCase(FailurePathAssemblyProbabilityResultType.Manual, FailurePathAssemblyProbabilityResultType.Automatic)] - public void GivenFailureMechanismResultView_WhenChangingProbabilityResultType_ThenFailurePathAssemblyProbabilityAndNotifyPropertyChangedEventRaised( + public void GivenFailureMechanismResultView_WhenChangingProbabilityResultType_ThenFailurePathAssemblyProbabilityUpdated( FailurePathAssemblyProbabilityResultType initialResultType, FailurePathAssemblyProbabilityResultType newResultType) { @@ -886,7 +886,7 @@ [TestCase("NotAProbability", "De waarde kon niet geïnterpreteerd worden als een kans.")] [TestCase("30", "De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.")] [TestCase("-1", "De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.")] - public void GivenFailureMechanismResultTypeManualAndWithoutError_WhenSettingInvalidValue_ThenSetsDefaultFailurePathAssemblyProbabilityWithError( + public void GivenFailureMechanismResultTypeManualAndWithoutError_WhenSettingInvalidValue_ThenInitialFailurePathAssemblyProbabilitySetWithError( string invalidValue, string expectedErrorMessage) { @@ -933,7 +933,7 @@ } [Test] - public void GivenFailureMechanismResultTypeManualAndWithoutError_WhenSettingNaNValue_ThenSetsDefaultFailurePathAssemblyProbabilityWithErrorAndNotifiesObserver() + public void GivenFailureMechanismResultTypeManualAndWithoutError_WhenSettingNaNValue_ThenSetFailurePathAssemblyProbabilityWithErrorAndObserversNotified() { // Given const double manualProbability = 0.2; @@ -982,7 +982,7 @@ [SetCulture("nl-NL")] [TestCase("0,1", "1/10", 0.1)] [TestCase("1/10", "1/10", 0.1)] - public void GivenFailureMechanismResultTypeManualAndWithError_WhenSettingValidValue_ThenSetsFailurePathAssemblyProbabilityAndNotifiesObservers( + public void GivenFailureMechanismResultTypeManualAndWithError_WhenSettingValidValue_ThenFailurePathAssemblyProbabilitySetAndObserversNotified( string validValue, string formattedValidValue, double expectedProbability) @@ -1063,7 +1063,7 @@ } [Test] - public void GivenFailureMechanismResultTypeManual_WhenInvalidValueEscPressed_ThenSetsFailurePathAssemblyProbabilityToOriginalValue() + public void GivenFailureMechanismResultTypeManual_WhenInvalidValueEnteredAndEscPressed_ThenFailurePathAssemblyProbabilitySetToInitialValue() { // Given var mocks = new MockRepository(); Index: Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/StructuresFailureMechanismResultViewTest.cs =================================================================== diff -u -r6b3753a9bfc048980b06342b163783b28c2d8a24 -r3cc92efc564836ab92d661799fd6eac0b21d00d9 --- Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/StructuresFailureMechanismResultViewTest.cs (.../StructuresFailureMechanismResultViewTest.cs) (revision 6b3753a9bfc048980b06342b163783b28c2d8a24) +++ Riskeer/Common/test/Riskeer.Common.Forms.Test/Views/StructuresFailureMechanismResultViewTest.cs (.../StructuresFailureMechanismResultViewTest.cs) (revision 3cc92efc564836ab92d661799fd6eac0b21d00d9) @@ -241,7 +241,7 @@ } [Test] - public void GivenStructuresFailureMechanismResultView_WhenCalculationNotifiesObservers_ThenDataGridViewAndPerformsAssembly() + public void GivenStructuresFailureMechanismResultView_WhenCalculationNotifiesObservers_ThenDataGridViewUpdatedAndAssemblyPerformed() { // Given var failureMechanism = new TestStructuresFailureMechanism(); @@ -291,7 +291,7 @@ } [Test] - public void GivenStructuresFailureMechanismResultView_WhenCalculationInputNotifiesObservers_ThenDataGridViewUpdatedAndPerformsAssembly() + public void GivenStructuresFailureMechanismResultView_WhenCalculationInputNotifiesObservers_ThenDataGridViewUpdatedAndAssemblyPerformed() { // Given var failureMechanism = new TestStructuresFailureMechanism(); Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismResultViewTest.cs =================================================================== diff -u -r53c5fe7702f3ab944f1d446468f8ffc04ddc2c75 -r3cc92efc564836ab92d661799fd6eac0b21d00d9 --- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismResultViewTest.cs (.../MacroStabilityInwardsFailureMechanismResultViewTest.cs) (revision 53c5fe7702f3ab944f1d446468f8ffc04ddc2c75) +++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismResultViewTest.cs (.../MacroStabilityInwardsFailureMechanismResultViewTest.cs) (revision 3cc92efc564836ab92d661799fd6eac0b21d00d9) @@ -241,7 +241,7 @@ } [Test] - public void GivenMacroStabilityInwardsFailureMechanismResultView_WhenCalculationNotifiesObservers_ThenDataGridViewAndPerformsAssembly() + public void GivenMacroStabilityInwardsFailureMechanismResultView_WhenCalculationNotifiesObservers_ThenDataGridViewUpdatedAndAssemblyPerformed() { // Given var failureMechanism = new MacroStabilityInwardsFailureMechanism(); @@ -284,7 +284,7 @@ } [Test] - public void GivenMacroStabilityInwardsFailureMechanismResultView_WhenCalculationInputNotifiesObservers_ThenDataGridViewUpdatedAndPerformsAssembly() + public void GivenMacroStabilityInwardsFailureMechanismResultView_WhenCalculationInputNotifiesObservers_ThenDataGridViewUpdatedAndAssemblyPerformed() { // Given var failureMechanism = new MacroStabilityInwardsFailureMechanism(); Index: Riskeer/Piping/test/Riskeer.Piping.Forms.Test/Views/PipingFailureMechanismResultViewTest.cs =================================================================== diff -u -r10fa7dc4e89445117c00b565a973ce4307333f0b -r3cc92efc564836ab92d661799fd6eac0b21d00d9 --- Riskeer/Piping/test/Riskeer.Piping.Forms.Test/Views/PipingFailureMechanismResultViewTest.cs (.../PipingFailureMechanismResultViewTest.cs) (revision 10fa7dc4e89445117c00b565a973ce4307333f0b) +++ Riskeer/Piping/test/Riskeer.Piping.Forms.Test/Views/PipingFailureMechanismResultViewTest.cs (.../PipingFailureMechanismResultViewTest.cs) (revision 3cc92efc564836ab92d661799fd6eac0b21d00d9) @@ -255,7 +255,7 @@ } [Test] - public void GivenPipingFailureMechanismResultView_WhenCalculationNotifiesObservers_ThenDataGridViewAndPerformsAssembly() + public void GivenPipingFailureMechanismResultView_WhenCalculationNotifiesObservers_ThenDataGridViewUpdatedAndAssemblyPerformed() { // Given var failureMechanism = new PipingFailureMechanism(); @@ -297,7 +297,7 @@ } [Test] - public void GivenPipingFailureMechanismResultView_WhenCalculationInputNotifiesObservers_ThenDataGridViewUpdatedAndPerformsAssembly() + public void GivenPipingFailureMechanismResultView_WhenCalculationInputNotifiesObservers_ThenDataGridViewUpdatedAndAssemblyPerformed() { // Given var failureMechanism = new PipingFailureMechanism(); @@ -339,7 +339,7 @@ } [Test] - public void GivenPipingFailureMechanismResultView_WhenScenarioConfigurationsPerFailureMechanismSectionNotifiesObservers_ThenDataGridViewUpdatedAndPerformsAssembly() + public void GivenPipingFailureMechanismResultView_WhenScenarioConfigurationsPerFailureMechanismSectionNotifiesObservers_ThenDataGridViewUpdatedAndAssemblyPerformed() { // Given var failureMechanism = new PipingFailureMechanism();