Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresContextTreeNodeInfoTest.cs =================================================================== diff -u -r2f6400116d57c2b49f7089dbc9c8cd935c185a36 -r3e3087bd9c43ca5a3910438b3c9daf0defcb09bf --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresContextTreeNodeInfoTest.cs (.../HeightStructuresContextTreeNodeInfoTest.cs) (revision 2f6400116d57c2b49f7089dbc9c8cd935c185a36) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructuresContextTreeNodeInfoTest.cs (.../HeightStructuresContextTreeNodeInfoTest.cs) (revision 3e3087bd9c43ca5a3910438b3c9daf0defcb09bf) @@ -22,7 +22,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; using Core.Common.Gui.ContextMenu; @@ -31,6 +30,7 @@ using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.HeightStructures.Data; +using Ringtoets.HeightStructures.Data.TestUtil; using Ringtoets.HeightStructures.Forms.PresentationObjects; using Ringtoets.HeightStructures.Plugin; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; @@ -131,7 +131,7 @@ var heightStructures = new ObservableList { - CreateHeightStructure() + new TestHeightStructure() }; // Precondition @@ -155,8 +155,8 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - HeightStructure heightStructure1 = CreateHeightStructure(); - HeightStructure heightStructure2 = CreateHeightStructure(); + HeightStructure heightStructure1 = new TestHeightStructure(); + HeightStructure heightStructure2 = new TestHeightStructure(); var heightStructures = new ObservableList { heightStructure1, @@ -223,18 +223,5 @@ // Assert mocks.VerifyAll(); } - - private static HeightStructure CreateHeightStructure() - { - return new HeightStructure("aName", "anId", new Point2D(1.22, 2.333), - 0.12345, - 234.567, 0.23456, - 345.678, 0.34567, - 456.789, 0.45678, - 567.890, 0.56789, - 0.67890, - 112.223, 0.11222, - 225.336, 0.22533); - } } } \ No newline at end of file