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