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

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