Ejemplo n.º 1
0
        public void RecordFieldUtility_GetFieldCount_1()
        {
            RecordFieldCollection collection = _GetFieldCollection();

            Assert.AreEqual(1, RecordFieldUtility.GetFieldCount(collection, 100));
            Assert.AreEqual(2, RecordFieldUtility.GetFieldCount(collection, 200));
            Assert.AreEqual(0, RecordFieldUtility.GetFieldCount(collection, 300));
        }
Ejemplo n.º 2
0
        public void RecordFieldUtility_GetFieldCount_2()
        {
            IEnumerable <RecordField> enumeration = _GetFieldEnumeration();

            Assert.AreEqual(1, RecordFieldUtility.GetFieldCount(enumeration, 100));

            enumeration = _GetFieldEnumeration();
            Assert.AreEqual(2, RecordFieldUtility.GetFieldCount(enumeration, 200));

            enumeration = _GetFieldEnumeration();
            Assert.AreEqual(0, RecordFieldUtility.GetFieldCount(enumeration, 300));
        }