Index: src/Deltares.DSoilModel.Forms.Tests/CenterCrestLocationPropertyControlTest.cs =================================================================== diff -u -r317 -r326 --- src/Deltares.DSoilModel.Forms.Tests/CenterCrestLocationPropertyControlTest.cs (.../CenterCrestLocationPropertyControlTest.cs) (revision 317) +++ src/Deltares.DSoilModel.Forms.Tests/CenterCrestLocationPropertyControlTest.cs (.../CenterCrestLocationPropertyControlTest.cs) (revision 326) @@ -7,6 +7,21 @@ [TestFixture, RequiresSTA] public class CenterCrestLocationPropertyControlTest : ControlTester { + private CenterCrestLocationPropertyControl control; + + [SetUp] + public void Setup() + { + control = new CenterCrestLocationPropertyControl(); + } + + [TearDown] + public void TearDown() + { + control.Dispose(); + control = null; + } + [Test] public void TestControlBindings() { @@ -28,5 +43,20 @@ TestLabelControlVisibleValue(control, "XcoordinateLabel", true, "Locatie"); } } + + [Test] + public void TestSelectedObject() + { + var location = new CenterCrestLocation(); + control.SelectedObject = location; + Assert.AreSame(location, control.SelectedObject); + } + + [Test] + public void TestIsVisible() + { + Assert.IsTrue(control.IsVisible); + } + } }