public void TestAddDropDownListInspectors() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => _dropDownListInspectorsCollection.AddDropDownListInspectors(7, TestDefinition.DUMP_INTEGER)); Assert.ThrowsException <ArgumentOutOfRangeException>(() => _dropDownListInspectorsCollection.AddDropDownListInspectors(9, TestDefinition.DUMP_INTEGER)); _dropDownListInspectorsCollection.AddDropDownListInspectors(8, 5); Assert.AreEqual((( DropDownListIsSelectedInspector )_dropDownListInspectorsCollection.Inspectors[0]).SelectedIndex, 5); }
/// <summary> /// Add drop-down inspectors to the drop-down list inspectors collection by dropDownListInspectorTypeFlag. /// </summary> public void AddDropDownListInspectors(int dropDownListInspectorTypeFlag) { _dropDownListInspectorsCollection.AddDropDownListInspectors(dropDownListInspectorTypeFlag, this.SelectedIndex); }