Index: src/Deltares.DSoilModel.Forms.Tests/CenterCrestLocationPropertyControlTest.cs =================================================================== diff -u --- src/Deltares.DSoilModel.Forms.Tests/CenterCrestLocationPropertyControlTest.cs (revision 0) +++ src/Deltares.DSoilModel.Forms.Tests/CenterCrestLocationPropertyControlTest.cs (revision 310) @@ -0,0 +1,33 @@ +using Deltares.DSoilModel.Data; +using Deltares.Geotechnics; +using Deltares.Standard.Forms.DExpress; +using NUnit.Framework; + +namespace Deltares.DSoilModel.Forms.Tests +{ + [TestFixture, RequiresSTA] + public class CenterCrestLocationPropertyControlTest : ControlTester + { + [Test] + public void TestControlBindings() + { + using (var control = new CenterCrestLocationPropertyControl()) + { + var profile = new SoilProfile2D(); + var location = new CenterCrestLocation + { + Location = 1.23, + SoilProfile2D = profile + }; + control.SelectedObject = location; + + Assert.AreSame(location, control.SelectedObject); + + Assert.IsTrue(control.IsVisible); + + TestSpinEditVisibleEnabledValue(control, "XcoordinateEdit", true, true, 1.23, 2.34); + TestLabelControlVisibleValue(control, "XcoordinateLabel", "Location"); + } + } + } +} Index: src/Deltares.DSoilModel.Forms.Tests/Deltares.DSoilModel.Forms.Tests.csproj =================================================================== diff -u -r306 -r310 --- src/Deltares.DSoilModel.Forms.Tests/Deltares.DSoilModel.Forms.Tests.csproj (.../Deltares.DSoilModel.Forms.Tests.csproj) (revision 306) +++ src/Deltares.DSoilModel.Forms.Tests/Deltares.DSoilModel.Forms.Tests.csproj (.../Deltares.DSoilModel.Forms.Tests.csproj) (revision 310) @@ -90,6 +90,7 @@ +