public void SetOptionalField_FormObject_Null_FieldNumber() { string fieldNumber = "123"; FormObject formObject = null; formObject.SetOptionalField(fieldNumber); Assert.IsFalse(formObject.IsFieldEnabled(fieldNumber)); Assert.IsFalse(formObject.IsFieldRequired(fieldNumber)); }
public void SetOptionalField_FormObject_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); formObject.SetOptionalField(fieldNumber); Assert.IsFalse(formObject.IsFieldEnabled("234")); Assert.IsFalse(formObject.IsFieldRequired("234")); }