Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs =================================================================== diff -u -r5d503cf8885ced4799e5ad44242038d99e04b162 -rc899b9042ee83f3ac6d6213515d7edacfbe8c414 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision 5d503cf8885ced4799e5ad44242038d99e04b162) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/ViewInfos/HeightStructuresScenariosViewInfoTest.cs (.../HeightStructuresScenariosViewInfoTest.cs) (revision c899b9042ee83f3ac6d6213515d7edacfbe8c414) @@ -235,8 +235,11 @@ Data = new CalculationGroup() }; - // Call & Assert - Assert.IsFalse(info.CloseForData(view, assessmentSectionMock)); + // Call + bool closeForData = info.CloseForData(view, assessmentSectionMock); + + // Assert + Assert.IsFalse(closeForData); mocks.VerifyAll(); } @@ -257,8 +260,11 @@ Data = new CalculationGroup() }; - // Call & Assert - Assert.IsFalse(info.CloseForData(view, assessmentSectionMock)); + // Call + bool closeForData = info.CloseForData(view, assessmentSectionMock); + + // Assert + Assert.IsFalse(closeForData); mocks.VerifyAll(); } @@ -280,8 +286,11 @@ Data = failureMechanism.CalculationsGroup }; - // Call & Assert - Assert.IsTrue(info.CloseForData(view, assessmentSectionMock)); + // Call + bool closeForData = info.CloseForData(view, assessmentSectionMock); + + // Assert + Assert.IsTrue(closeForData); mocks.VerifyAll(); } @@ -294,8 +303,11 @@ view.Data = new CalculationGroup(); - // Call & Assert - Assert.IsFalse(info.CloseForData(view, failureMechanism)); + // Call + bool closeForData = info.CloseForData(view, failureMechanism); + + // Assert + Assert.IsFalse(closeForData); } [Test] @@ -307,16 +319,18 @@ view.Data = failureMechanism.CalculationsGroup; - // Call & Assert - Assert.IsTrue(info.CloseForData(view, failureMechanism)); + // Call + bool closeForData = info.CloseForData(view, failureMechanism); + + // Assert + Assert.IsTrue(closeForData); } [Test] public void CloseForData_ViewNotCorrespondingToRemovedFailureMechanismContext_ReturnsFalse() { // Setup var assessmentSectionMock = mocks.StrictMock(); - mocks.ReplayAll(); var view = new HeightStructuresScenariosView(); @@ -325,17 +339,19 @@ view.Data = failureMechanism.CalculationsGroup; - // Call & Assert - Assert.IsFalse(info.CloseForData(view, failureMechanismContext)); + // Call + bool closeForData = info.CloseForData(view, failureMechanismContext); + + // Assert + Assert.IsFalse(closeForData); mocks.VerifyAll(); } [Test] public void CloseForData_ViewCorrespondingToRemovedFailureMechanismContext_ReturnsTrue() { // Setup - var assessmentSectionMock = mocks.StrictMock(); - + var assessmentSectionMock = mocks.Stub(); mocks.ReplayAll(); var view = new HeightStructuresScenariosView(); @@ -344,8 +360,11 @@ view.Data = failureMechanism.CalculationsGroup; - // Call & Assert - Assert.IsTrue(info.CloseForData(view, failureMechanismContext)); + // Call + bool closeForData = info.CloseForData(view, failureMechanismContext); + + // Assert + Assert.IsTrue(closeForData); mocks.VerifyAll(); }