Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs =================================================================== diff -u -racfa9d23d1770ca3171668552ddbe6d63fdd0dcd -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs (.../PipingInputViewInfoTest.cs) (revision acfa9d23d1770ca3171668552ddbe6d63fdd0dcd) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/ViewInfos/PipingInputViewInfoTest.cs (.../PipingInputViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -85,7 +85,7 @@ public void GetViewData_Always_ReturnsWrappedCalculation() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingInput = new PipingInput(new GeneralPipingInput()); @@ -108,7 +108,7 @@ public void CloseForData_ViewCorrespondingToRemovedPipingCalculationScenarioContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingCalculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -136,7 +136,7 @@ public void CloseForData_ViewNotCorrespondingToRemovedPipingCalculationScenarioContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var pipingCalculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -211,7 +211,7 @@ public void CloseForData_ViewCorrespondingWithRemovedPipingCalculationGroupContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -241,7 +241,7 @@ public void CloseForData_ViewNotCorrespondingWithRemovedPipingCalculationGroupContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -271,7 +271,7 @@ public void CloseForData_NestedViewCorrespondingWithRemovedParentPipingCalculationGroupContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -303,7 +303,7 @@ public void CloseForData_NestedViewNotCorrespondingWithRemovedParentPipingCalculationGroupContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -335,7 +335,7 @@ public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -362,7 +362,7 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -389,7 +389,7 @@ public void CloseForData_NestedViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -419,7 +419,7 @@ public void CloseForData_NestedViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - IAssessmentSection assessmentSection = mocks.StrictMock(); + IAssessmentSection assessmentSection = mocks.Stub(); mocks.ReplayAll(); var calculation = new PipingCalculationScenario(new GeneralPipingInput()); @@ -543,8 +543,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -573,8 +573,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculation); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -606,8 +606,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculationGroup); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -639,8 +639,8 @@ var failureMechanism = new PipingFailureMechanism(); failureMechanism.CalculationsGroup.Children.Add(calculationGroup); - IAssessmentSection assessmentSection = mocks.StrictMock(); - assessmentSection.Expect(section => section.GetFailureMechanisms()).Return(new[] + IAssessmentSection assessmentSection = mocks.Stub(); + assessmentSection.Stub(section => section.GetFailureMechanisms()).Return(new[] { failureMechanism });