示例#1
0
        public void RecordFieldUtility_GetFirstField_4()
        {
            RecordFieldCollection collection = _GetFieldCollection();
            RecordField           field      = RecordFieldUtility.GetFirstField(collection, 100, 200);

            Assert.IsNotNull(field);

            field = RecordFieldUtility.GetFirstField(collection, 900, 1000);
            Assert.IsNull(field);

            field = RecordFieldUtility.GetFirstField(collection, 900, 200);
            Assert.IsNotNull(field);
        }
示例#2
0
        public void RecordFieldUtility_GetFirstField_1()
        {
            IEnumerable <RecordField> enumeration = _GetFieldEnumeration();
            RecordField field = RecordFieldUtility.GetFirstField(enumeration, 100);

            Assert.IsNotNull(field);

            enumeration = _GetFieldEnumeration();
            field       = RecordFieldUtility.GetFirstField(enumeration, 200);
            Assert.IsNotNull(field);

            enumeration = _GetFieldEnumeration();
            field       = RecordFieldUtility.GetFirstField(enumeration, 900);
            Assert.IsNull(field);
        }