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); }
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); }