Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Merge/AssessmentSectionMergeDataTest.cs =================================================================== diff -u -r21d784efbcfe4ce1a8a9242b219695ebaf0eb3e3 -re5dda4058c572ba943002d130b8591a90ee19ce9 --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Merge/AssessmentSectionMergeDataTest.cs (.../AssessmentSectionMergeDataTest.cs) (revision 21d784efbcfe4ce1a8a9242b219695ebaf0eb3e3) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/Merge/AssessmentSectionMergeDataTest.cs (.../AssessmentSectionMergeDataTest.cs) (revision e5dda4058c572ba943002d130b8591a90ee19ce9) @@ -37,32 +37,18 @@ public void Constructor_AssessmentSectionNull_ThrowsArgumentNullException() { // Call - TestDelegate call = () => new AssessmentSectionMergeData(null, Enumerable.Empty(), - new AssessmentSectionMergeData.ConstructionProperties()); + TestDelegate call = () => new AssessmentSectionMergeData(null, new AssessmentSectionMergeData.ConstructionProperties()); // Assert var exception = Assert.Throws(call); Assert.AreEqual("assessmentSection", exception.ParamName); } [Test] - public void Constructor_FailureMechanismsNull_ThrowsArgumentNullException() - { - // Call - TestDelegate call = () => new AssessmentSectionMergeData(new AssessmentSection(AssessmentSectionComposition.Dike), - null, new AssessmentSectionMergeData.ConstructionProperties()); - - // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("failureMechanisms", exception.ParamName); - } - - [Test] public void Constructor_PropertiesNull_ThrowsArgumentNullException() { // Call - TestDelegate call = () => new AssessmentSectionMergeData(new AssessmentSection(AssessmentSectionComposition.Dike), - Enumerable.Empty(), null); + TestDelegate call = () => new AssessmentSectionMergeData(new AssessmentSection(AssessmentSectionComposition.Dike), null); // Assert var exception = Assert.Throws(call); @@ -74,15 +60,12 @@ { // Setup var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); - IEnumerable failureMechanisms = Enumerable.Empty(); // Call - var mergeData = new AssessmentSectionMergeData(assessmentSection, failureMechanisms, - new AssessmentSectionMergeData.ConstructionProperties()); + var mergeData = new AssessmentSectionMergeData(assessmentSection, new AssessmentSectionMergeData.ConstructionProperties()); // Assert Assert.AreSame(assessmentSection, mergeData.AssessmentSection); - Assert.AreSame(failureMechanisms, mergeData.FailureMechanisms); Assert.IsFalse(mergeData.MergePiping); Assert.IsFalse(mergeData.MergeGrassCoverErosionInwards); Assert.IsFalse(mergeData.MergeMacroStabilityInwards); @@ -109,7 +92,6 @@ // Setup var random = new Random(21); var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike); - IEnumerable failureMechanisms = Enumerable.Empty(); var constructionProperties = new AssessmentSectionMergeData.ConstructionProperties { @@ -134,12 +116,10 @@ }; // Call - var mergeData = new AssessmentSectionMergeData(assessmentSection, failureMechanisms, - constructionProperties); + var mergeData = new AssessmentSectionMergeData(assessmentSection, constructionProperties); // Assert Assert.AreSame(assessmentSection, mergeData.AssessmentSection); - Assert.AreSame(failureMechanisms, mergeData.FailureMechanisms); Assert.AreEqual(constructionProperties.MergePiping, mergeData.MergePiping); Assert.AreEqual(constructionProperties.MergeGrassCoverErosionInwards, mergeData.MergeGrassCoverErosionInwards); Assert.AreEqual(constructionProperties.MergeMacroStabilityInwards, mergeData.MergeMacroStabilityInwards);