public void SetDisabledField_OptionObject_Null_FieldNumber() { string fieldNumber = "123"; OptionObject optionObject = null; optionObject.SetDisabledField(fieldNumber); Assert.IsFalse(optionObject.IsFieldEnabled(fieldNumber)); }
public void SetDisabledField_OptionObject_FieldNumber_IsNotPresent() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); OptionObject optionObject = new OptionObject(); optionObject.AddFormObject(formObject); optionObject.SetDisabledField(fieldNumber); Assert.IsFalse(optionObject.IsFieldEnabled("234")); }