public void TestInputInspectorsCollection() { var inputInspectorsCollection = new InputInspectorsCollection(); var target = new PrivateObject(inputInspectorsCollection); Assert.IsNotNull(target.GetFieldOrProperty(MEMBER_VARIABLE_NAME_INSPECTORS)); }
/// <summary> /// Initialize the input inspectors collection. /// </summary> private void InitializeInputInspectorsCollection() { _inputInspectorsCollection = new InputInspectorsCollection(); foreach (InputInspectingTextBox textBox in _textBoxes) { _inputInspectorsCollection.AddInputInspectorsList(textBox.GetInputInspectors()); } foreach (InputInspectingDropDownList dropDownList in _dropDownLists) { _inputInspectorsCollection.AddInputInspectorsList(dropDownList.GetInputInspectors()); } }
public void Initialize() { _inputInspectorsCollection = new InputInspectorsCollection(); _target = new PrivateObject(_inputInspectorsCollection); }