Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructureTreeNodeInfoTest.cs =================================================================== diff -u -rf1c9115205cc613a4b07f9865014785ec780da79 -r3e3087bd9c43ca5a3910438b3c9daf0defcb09bf --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructureTreeNodeInfoTest.cs (.../HeightStructureTreeNodeInfoTest.cs) (revision f1c9115205cc613a4b07f9865014785ec780da79) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/TreeNodeInfos/HeightStructureTreeNodeInfoTest.cs (.../HeightStructureTreeNodeInfoTest.cs) (revision 3e3087bd9c43ca5a3910438b3c9daf0defcb09bf) @@ -21,14 +21,14 @@ using System.Drawing; using System.Linq; -using Core.Common.Base.Geometry; using Core.Common.Controls.TreeView; using Core.Common.Gui; using Core.Common.Gui.ContextMenu; using Core.Common.TestUtil; using NUnit.Framework; using Rhino.Mocks; using Ringtoets.HeightStructures.Data; +using Ringtoets.HeightStructures.Data.TestUtil; using Ringtoets.HeightStructures.Plugin; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; @@ -89,7 +89,7 @@ // Setup mocks.ReplayAll(); string name = "very nice name!"; - HeightStructure structure = CreateSimpleHeightStructure(name); + HeightStructure structure = new TestHeightStructure(name); // Call string text = info.Text(structure); @@ -121,7 +121,7 @@ using (var treeViewControl = new TreeViewControl()) { - HeightStructure nodeData = CreateSimpleHeightStructure("A"); + HeightStructure nodeData = new TestHeightStructure("A"); var guiMock = mocks.StrictMock(); guiMock.Expect(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilderMock); @@ -136,17 +136,5 @@ // Assert // Assert expectancies are called in TearDown() } - - private static HeightStructure CreateSimpleHeightStructure(string name) - { - return new HeightStructure(name, "1", new Point2D(1, 2), 12.34, - 1.1, 0.4, - 2.2, 0.5, - 3.3, 0.6, - 4.4, 0.7, - 5.5, - 6.6, 0.8, - 7.7, 0.9); - } } } \ No newline at end of file