Example #1
0
        public void SetUnlockedField_OptionObject2015_Null_FieldNumber()
        {
            string           fieldNumber  = "123";
            OptionObject2015 optionObject = null;

            optionObject.SetUnlockedField(fieldNumber);
            Assert.IsFalse(optionObject.IsFieldLocked(fieldNumber));
        }
Example #2
0
        public void SetUnlockedField_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.SetUnlockedField(fieldNumber);
            Assert.IsFalse(optionObject.IsFieldLocked("234"));
        }