Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -rf8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e -r827cf33fbb55722d0888ed3a18cef230699fe803 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision f8c28b3b04cdabb62ea37772efcb1f4ebbbf2b9e) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructuresFailureMechanismContextTreeNodeInfoTest.cs) (revision 827cf33fbb55722d0888ed3a18cef230699fe803) @@ -128,22 +128,22 @@ Assert.AreEqual("Invoer", inputsFolder.Name); Assert.AreEqual(TreeFolderCategory.Input, inputsFolder.Category); - Assert.AreEqual(4, inputsFolder.Contents.Count); - var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents[0]; + Assert.AreEqual(4, inputsFolder.Contents.Count()); + var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismSectionsContext.WrappedData); Assert.AreSame(assessmentSection, failureMechanismSectionsContext.ParentAssessmentSection); - var profilesContext = (ForeshoreProfilesContext) inputsFolder.Contents[1]; + var profilesContext = (ForeshoreProfilesContext) inputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.ForeshoreProfiles, profilesContext.WrappedData); Assert.AreSame(failureMechanism, profilesContext.ParentFailureMechanism); Assert.AreSame(assessmentSection, profilesContext.ParentAssessmentSection); - var closingStructuresContext = (ClosingStructuresContext) inputsFolder.Contents[2]; + var closingStructuresContext = (ClosingStructuresContext) inputsFolder.Contents.ElementAt(2); Assert.AreSame(failureMechanism.ClosingStructures, closingStructuresContext.WrappedData); Assert.AreSame(failureMechanism, closingStructuresContext.FailureMechanism); Assert.AreSame(assessmentSection, closingStructuresContext.AssessmentSection); - var inputComment = (Comment) inputsFolder.Contents[3]; + var inputComment = (Comment) inputsFolder.Contents.ElementAt(3); Assert.AreSame(failureMechanism.InputComments, inputComment); var calculationsFolder = (ClosingStructuresCalculationGroupContext) children[1]; @@ -155,16 +155,16 @@ Assert.AreEqual("Oordeel", outputsFolder.Name); Assert.AreEqual(TreeFolderCategory.Output, outputsFolder.Category); - Assert.AreEqual(3, outputsFolder.Contents.Count); - var scenariosContext = (ClosingStructuresScenariosContext) outputsFolder.Contents[0]; + Assert.AreEqual(3, outputsFolder.Contents.Count()); + var scenariosContext = (ClosingStructuresScenariosContext) outputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism.CalculationsGroup, scenariosContext.WrappedData); Assert.AreSame(failureMechanism, scenariosContext.ParentFailureMechanism); - var failureMechanismResultsContext = (FailureMechanismSectionResultContext) outputsFolder.Contents[1]; + var failureMechanismResultsContext = (FailureMechanismSectionResultContext) outputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism, failureMechanismResultsContext.FailureMechanism); Assert.AreSame(failureMechanism.SectionResults, failureMechanismResultsContext.WrappedData); - var outputComment = (Comment) outputsFolder.Contents[2]; + var outputComment = (Comment) outputsFolder.Contents.ElementAt(2); Assert.AreSame(failureMechanism.OutputComments, outputComment); }