Exemplo n.º 1
0
        public void RecordFieldUtility_GetFirstFieldValue_2()
        {
            RecordFieldCollection collection = new RecordFieldCollection
            {
                new RecordField(100, "Field100"),
                new RecordField(200, "TheField200"),
            };
            string value = RecordFieldUtility.GetFirstFieldValue(collection, 100);

            Assert.IsNotNull(value);

            value = RecordFieldUtility.GetFirstFieldValue(collection, 200);
            Assert.IsNotNull(value);

            value = RecordFieldUtility.GetFirstFieldValue(collection, 900);
            Assert.IsNull(value);
        }