Index: src/Deltares.DSoilModel.Forms.Tests/ControlTester.cs =================================================================== diff -u -r351 -r352 --- src/Deltares.DSoilModel.Forms.Tests/ControlTester.cs (.../ControlTester.cs) (revision 351) +++ src/Deltares.DSoilModel.Forms.Tests/ControlTester.cs (.../ControlTester.cs) (revision 352) @@ -117,6 +117,19 @@ } } } + + protected void TestTextEditVisibleEnabledValue(IPropertyControl parentControl, string textEditName, + bool isVisibleExpected, bool isEnabledExpected, T target, Expression> outExpr, object newValue = null) + { + TestControlVisibleEnabled(parentControl, textEditName, isVisibleExpected, isEnabledExpected); + if (isVisibleExpected) + { + var edit = GetPrivateField(parentControl, textEditName); + var initialValue = GetValue(target, outExpr); + Assert.AreEqual(initialValue.ToString(), edit.EditValue, InitialValueMismatchString); + // we cannot assign a new object to the TextEdit. So don't expect to have a test for setting a value + } + } protected void TestComboBoxVisibleEnabledValue(IPropertyControl parentControl, string textEditName, bool isVisibleExpected, bool isEnabledExpected, T target, Expression> outExpr, TEnum newValue = default(TEnum))