Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs =================================================================== diff -u -r8c1fffbb415e7c2470be6d3fa2971103777d418e -r8e2eb144317c011c15783e8e850c9253d550450e --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision 8c1fffbb415e7c2470be6d3fa2971103777d418e) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision 8e2eb144317c011c15783e8e850c9253d550450e) @@ -226,8 +226,8 @@ public void CloseForData_AssessmentSectionRemovedWithoutHeightStructuresFailureMechanism_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new IFailureMechanism[0]); mocks.ReplayAll(); var view = new HeightStructuresScenariosView @@ -236,7 +236,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -247,8 +247,8 @@ public void CloseForData_ViewNotCorrespondingToRemovedAssessmentSection_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + var assessmentSection = mocks.Stub(); + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { new HeightStructuresFailureMechanism() }); @@ -261,7 +261,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -272,9 +272,9 @@ public void CloseForData_ViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var failureMechanism = new HeightStructuresFailureMechanism(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -287,7 +287,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData); @@ -330,12 +330,12 @@ public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var view = new HeightStructuresScenariosView(); var failureMechanism = new HeightStructuresFailureMechanism(); - var failureMechanismContext = new HeightStructuresFailureMechanismContext(new HeightStructuresFailureMechanism(), assessmentSectionMock); + var failureMechanismContext = new HeightStructuresFailureMechanismContext(new HeightStructuresFailureMechanism(), assessmentSection); view.Data = failureMechanism.CalculationsGroup;