Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/HeightStructurePermutationHelper.cs =================================================================== diff -u -r597f2ecd0c9cb1aedf4bef978b209d49f63b08fe -rb869895cec4a159381b5d2db15b48744dd66ab60 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/HeightStructurePermutationHelper.cs (.../HeightStructurePermutationHelper.cs) (revision 597f2ecd0c9cb1aedf4bef978b209d49f63b08fe) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/HeightStructurePermutationHelper.cs (.../HeightStructurePermutationHelper.cs) (revision b869895cec4a159381b5d2db15b48744dd66ab60) @@ -34,6 +34,34 @@ public static class HeightStructurePermutationHelper { /// + /// Returns a collection of modified entities. + /// + /// The name of the target to test while using the test case source. + /// A description of the result of the test while using the test case source. + /// The collection of test case data. + /// + /// [TestCaseSource(typeof(HeightStructurePermutationHelper), + /// nameof(HeightStructurePermutationHelper.DifferentHeightStructures), + /// new object[] + /// { + /// "TargetMethodName", + /// "TestResult" + /// })] + /// + public static IEnumerable DifferentHeightStructures(string targetName, string testResultDescription) + { + var testCaseData = new List + { + new TestCaseData(new TestHeightStructure("Different id")) + .SetName($"{targetName}_DifferentId_{testResultDescription}") + }; + + testCaseData.AddRange(DifferentHeightStructuresWithSameId(targetName, testResultDescription)); + + return testCaseData; + } + + /// /// Returns a collection of modified entities, which all differ /// except for their id. /// @@ -75,7 +103,7 @@ /// The collection of test case data. /// /// [TestCaseSource(typeof(HeightStructurePermutationHelper), - /// nameof(HeightStructurePermutationHelper.DifferentHeightStructuresWithSameId), + /// nameof(HeightStructurePermutationHelper.DifferentHeightStructuresWithSameIdNameAndLocation), /// new object[] /// { /// "TargetMethodName",