Пример #1
0
        public void SetUnlockedField_FormObject_Null_FieldNumber()
        {
            string     fieldNumber = "123";
            FormObject formObject  = null;

            formObject.SetUnlockedField(fieldNumber);
            Assert.IsFalse(formObject.IsFieldLocked(fieldNumber));
        }
Пример #2
0
        public void SetUnlockedField_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.SetUnlockedField(fieldNumber);
            Assert.IsFalse(formObject.IsFieldLocked("234"));
        }