public void MarcRecordUtility_HaveField_1()
        {
            MarcRecord record = new MarcRecord();

            Assert.IsFalse(record.HaveField(700));
            record.AddField(200, "^aЗаглавие");
            record.AddField(700, "^aСидоров^bС. С.");
            Assert.IsTrue(record.HaveField(700));
        }
        public void MarcRecordUtility_ReplaceField_1()
        {
            MarcRecord record = new MarcRecord();

            RecordField[] replacement =
            {
                new RecordField(702, "^aИванов^bИ. И."),
                new RecordField(702, "^aПетров^bП. П."),
                new RecordField(702, "^aСидоров^bС. С."),
            };
            MarcRecord result = record.ReplaceField(700, replacement);

            Assert.AreSame(record, result);
            Assert.AreEqual(3, record.Fields.Count);
            Assert.IsFalse(record.HaveField(700));
            Assert.IsTrue(record.HaveField(702));
        }