Index: src/Deltares.DSoilModel.Forms.Tests/Deltares.DSoilModel.Forms.Tests.csproj =================================================================== diff -u -r334 -r336 --- src/Deltares.DSoilModel.Forms.Tests/Deltares.DSoilModel.Forms.Tests.csproj (.../Deltares.DSoilModel.Forms.Tests.csproj) (revision 334) +++ src/Deltares.DSoilModel.Forms.Tests/Deltares.DSoilModel.Forms.Tests.csproj (.../Deltares.DSoilModel.Forms.Tests.csproj) (revision 336) @@ -44,6 +44,10 @@ False ..\..\lib\Deltares\DslGeo\Deltares.Geotechnics.TestUtils.dll + + False + ..\..\lib\Deltares\DslGeo\Deltares.Mathematics.dll + False ..\..\lib\Deltares\DslProbabilistic\Deltares.Probabilistic.dll @@ -97,6 +101,7 @@ + Index: src/Deltares.DSoilModel.Forms/SoilSegmentSplitLocationControl.cs =================================================================== diff -u -r6 -r336 --- src/Deltares.DSoilModel.Forms/SoilSegmentSplitLocationControl.cs (.../SoilSegmentSplitLocationControl.cs) (revision 6) +++ src/Deltares.DSoilModel.Forms/SoilSegmentSplitLocationControl.cs (.../SoilSegmentSplitLocationControl.cs) (revision 336) @@ -1,12 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; +using System.Windows.Forms; using Deltares.DSoilModel.Data; -using Deltares.Standard; using Deltares.Standard.EventPublisher; using Deltares.Standard.Forms; using Deltares.Standard.Forms.DExpress; Index: src/Deltares.DSoilModel.Forms.Tests/SoilSegmentSplitLocationControlTests.cs =================================================================== diff -u --- src/Deltares.DSoilModel.Forms.Tests/SoilSegmentSplitLocationControlTests.cs (revision 0) +++ src/Deltares.DSoilModel.Forms.Tests/SoilSegmentSplitLocationControlTests.cs (revision 336) @@ -0,0 +1,41 @@ +using Deltares.DSoilModel.Data; +using Deltares.Standard.Forms; +using NUnit.Framework; + +namespace Deltares.DSoilModel.Forms.Tests +{ + [TestFixture, RequiresSTA] + class SoilSegmentSplitLocationControlTests : ControlTester + { + protected override IPropertyControl CreatePropertyControl() + { + return new SoilSegmentSplitLocationControl(); + } + + [Test] + public void TestControlBindings() + { + var location = new SoilSegmentSplitLocation(); + PropertyControl.SelectedObject = location; + + TestSpinEditVisibleEnabledValue(PropertyControl, "XcoordinateEdit", true, true, location, l => l.XCoordinate , 77.0); + TestLabelControlVisibleValue(PropertyControl, "XcoordinateLabel", true, "X coordinaat"); + } + + [Test] + public void TestSelectedObject() + { + var location = new SoilSegmentSplitLocation(); + Assert.AreNotSame(location, PropertyControl.SelectedObject); // because we didn't assign it yet + + PropertyControl.SelectedObject = location; + Assert.AreSame(location, PropertyControl.SelectedObject); + } + + [Test] + public void TestIsVisible() + { + Assert.IsTrue(PropertyControl.IsVisible); // always true + } + } +}