public void SetDisabledField_OptionObject2015_Null_FieldNumber() { string fieldNumber = "123"; OptionObject2015 optionObject = null; optionObject.SetDisabledField(fieldNumber); Assert.IsFalse(optionObject.IsFieldEnabled(fieldNumber)); }
public void SetDisabledField_OptionObject2015_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); OptionObject2015 optionObject = new OptionObject2015(); optionObject.AddFormObject(formObject); optionObject.SetDisabledField(fieldNumber); Assert.IsFalse(optionObject.IsFieldEnabled("234")); }