Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs =================================================================== diff -u -r8c1fffbb415e7c2470be6d3fa2971103777d418e -r4eba092cb591f9f164f1e22f5b2bba25b148dda5 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs (.../StabilityPointStructuresScenariosViewInfoTest.cs) (revision 8c1fffbb415e7c2470be6d3fa2971103777d418e) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/ViewInfos/StabilityPointStructuresScenariosViewInfoTest.cs (.../StabilityPointStructuresScenariosViewInfoTest.cs) (revision 4eba092cb591f9f164f1e22f5b2bba25b148dda5) @@ -157,7 +157,7 @@ var unrelatedFailureMechanism = new StabilityPointStructuresFailureMechanism(); var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { unrelatedFailureMechanism }); @@ -187,7 +187,7 @@ }) { var assessmentSection = mocks.Stub(); - assessmentSection.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { relatedFailureMechanism }); @@ -244,8 +244,8 @@ public void CloseForData_AssessmentSectionRemovedWithoutStabilityPointStructuresFailureMechanism_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 StabilityPointStructuresScenariosView @@ -254,7 +254,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -265,8 +265,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 StabilityPointStructuresFailureMechanism() }); @@ -279,7 +279,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsFalse(closeForData); @@ -290,9 +290,9 @@ public void CloseForData_ViewCorrespondingToRemovedAssessmentSection_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); + var assessmentSection = mocks.Stub(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); - assessmentSectionMock.Expect(asm => asm.GetFailureMechanisms()).Return(new[] + assessmentSection.Stub(asm => asm.GetFailureMechanisms()).Return(new[] { failureMechanism }); @@ -305,7 +305,7 @@ }; // Call - bool closeForData = info.CloseForData(view, assessmentSectionMock); + bool closeForData = info.CloseForData(view, assessmentSection); // Assert Assert.IsTrue(closeForData);