public void SetEnabledFields_FormObject_ListFieldNumbers_Null() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); List <string> fieldNumbers = null; RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); formObject.SetEnabledFields(fieldNumbers); Assert.IsTrue(formObject.IsFieldEnabled(fieldNumber)); }
public void SetEnabledFields_FormObject_Null_ListFieldNumbers() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); List <string> fieldNumbers = new List <string>() { fieldNumber }; RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = null; formObject.SetEnabledFields(fieldNumbers); Assert.IsFalse(formObject.IsFieldEnabled(fieldNumber)); Assert.IsFalse(formObject.IsFieldRequired(fieldNumber)); }