Пример #1
0
        public void testIsValid()
        {
            JDFIntegerList integerList = new JDFIntegerList("1 2 3");

            iState.setDefaultValue(integerList);
            iState.setCurrentValue(integerList);
            Assert.IsFalse(iState.isValid(EnumValidationLevel.Complete));
            iState.setListType(EnumListType.List);
            Assert.IsTrue(iState.isValid(EnumValidationLevel.Complete));
            JDFIntegerRangeList integerRList = new JDFIntegerRangeList("1 2 3 4 ~ 44");

            iState.setAllowedValueList(integerRList);
            Assert.IsTrue(iState.isValid(EnumValidationLevel.Complete));
            JDFIntegerRangeList integerList2 = new JDFIntegerRangeList("1 2 3 7~77");

            iState.setPresentValueList(integerList2);
            Assert.IsTrue(iState.isValid(EnumValidationLevel.Complete));
        }