Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -rbda5bee40c8a756d444e5aeba5907e2617e76f00 -r827cf33fbb55722d0888ed3a18cef230699fe803 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs (.../StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision bda5bee40c8a756d444e5aeba5907e2617e76f00) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs (.../StabilityStoneCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision 827cf33fbb55722d0888ed3a18cef230699fe803) @@ -192,17 +192,17 @@ Assert.AreEqual("Invoer", inputsFolder.Name); Assert.AreEqual(TreeFolderCategory.Input, inputsFolder.Category); - Assert.AreEqual(3, inputsFolder.Contents.Count); - var failureMechanismSectionsContext = (FailureMechanismSectionsContext) inputsFolder.Contents[0]; + Assert.AreEqual(3, 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 comment = (Comment) inputsFolder.Contents[2]; + var comment = (Comment) inputsFolder.Contents.ElementAt(2); Assert.AreSame(failureMechanism.InputComments, comment); var hydraulicBoundariesCalculationGroup = (StabilityStoneCoverWaveConditionsCalculationGroupContext) children[1]; @@ -214,13 +214,13 @@ var outputsFolder = (CategoryTreeFolder) children[2]; Assert.AreEqual("Oordeel", outputsFolder.Name); Assert.AreEqual(TreeFolderCategory.Output, outputsFolder.Category); - Assert.AreEqual(2, outputsFolder.Contents.Count); + Assert.AreEqual(2, outputsFolder.Contents.Count()); - var failureMechanismResultsContext = (FailureMechanismSectionResultContext) outputsFolder.Contents[0]; + var failureMechanismResultsContext = (FailureMechanismSectionResultContext) outputsFolder.Contents.ElementAt(0); Assert.AreSame(failureMechanism, failureMechanismResultsContext.FailureMechanism); Assert.AreSame(failureMechanism.SectionResults, failureMechanismResultsContext.WrappedData); - var outputComment = (Comment) outputsFolder.Contents[1]; + var outputComment = (Comment) outputsFolder.Contents.ElementAt(1); Assert.AreSame(failureMechanism.OutputComments, outputComment); }