public void SetOptionalField_OptionObject_Null_FieldNumber()
        {
            string       fieldNumber  = "123";
            OptionObject optionObject = null;

            optionObject.SetOptionalField(fieldNumber);
            Assert.IsFalse(optionObject.IsFieldEnabled(fieldNumber));
            Assert.IsFalse(optionObject.IsFieldRequired(fieldNumber));
        }
        public void SetOptionalField_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.SetOptionalField(fieldNumber);
            Assert.IsFalse(optionObject.IsFieldEnabled("234"));
            Assert.IsFalse(optionObject.IsFieldRequired("234"));
        }