Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/ForeshoreProfilesContextTreeNodeInfoTest.cs =================================================================== diff -u -r802ea30d1fe8fbae93e58dff9ab054dbabca11ae -red4b032b9903f394deb9691c2c39a9f2122ab0f5 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/ForeshoreProfilesContextTreeNodeInfoTest.cs (.../ForeshoreProfilesContextTreeNodeInfoTest.cs) (revision 802ea30d1fe8fbae93e58dff9ab054dbabca11ae) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/ForeshoreProfilesContextTreeNodeInfoTest.cs (.../ForeshoreProfilesContextTreeNodeInfoTest.cs) (revision ed4b032b9903f394deb9691c2c39a9f2122ab0f5) @@ -21,7 +21,6 @@ using System.Drawing; using System.Linq; -using Core.Common.Base; using Core.Common.Base.Geometry; using Core.Common.Controls.TreeView; using Core.Common.Gui; @@ -111,7 +110,7 @@ var failureMechanism = mocks.Stub(); mocks.ReplayAll(); - var emptyCollection = new ObservableList(); + var emptyCollection = new ForeshoreProfileCollection(); var context = new ForeshoreProfilesContext(emptyCollection, failureMechanism, assessmentSection); // Call @@ -131,12 +130,14 @@ var failureMechanism = mocks.Stub(); mocks.ReplayAll(); - var emptyCollection = new ObservableList + var collection = new ForeshoreProfileCollection(); + collection.AddRange(new[] { new TestForeshoreProfile() - }; - var context = new ForeshoreProfilesContext(emptyCollection, failureMechanism, assessmentSection); + }, "path"); + var context = new ForeshoreProfilesContext(collection, failureMechanism, assessmentSection); + // Call Color color = info.ForeColor(context); @@ -154,17 +155,19 @@ var failureMechanism = mocks.Stub(); mocks.ReplayAll(); - var profile1 = new TestForeshoreProfile(new Point2D(0, 0)); - var profile2 = new TestForeshoreProfile(new Point2D(1, 1)); - var profile3 = new TestForeshoreProfile(new Point2D(2, 2)); - var emptyCollection = new ObservableList + ForeshoreProfile profile1 = new TestForeshoreProfile("A", "ID A"); + ForeshoreProfile profile2 = new TestForeshoreProfile("B", "ID B"); + ForeshoreProfile profile3 = new TestForeshoreProfile("C", "ID C"); + var collection = new ForeshoreProfileCollection(); + collection.AddRange(new[] { profile1, profile2, profile3 - }; - var context = new ForeshoreProfilesContext(emptyCollection, failureMechanism, assessmentSection); + }, "path"); + var context = new ForeshoreProfilesContext(collection, failureMechanism, assessmentSection); + // Call object[] children = info.ChildNodeObjects(context); @@ -189,7 +192,7 @@ var assessmentSection = mocks.Stub(); var failureMechanism = mocks.Stub(); - var emptyCollection = new ObservableList(); + var emptyCollection = new ForeshoreProfileCollection(); var context = new ForeshoreProfilesContext(emptyCollection, failureMechanism, assessmentSection); var contextMenuBuilder = mocks.Stub();