Esempio n. 1
0
        public void RecordFieldUtility_AddSubFields_6()
        {
            RecordField     field1    = new RecordField();
            List <SubField> subFields = null;
            RecordField     field2    = RecordFieldUtility.AddSubFields(field1, subFields);

            Assert.AreSame(field1, field2);
            Assert.AreEqual(0, field1.SubFields.Count);
        }
Esempio n. 2
0
        public void RecordFieldUtility_AddSubFields_2()
        {
            RecordField field1 = new RecordField();

            SubField[]  subFields = new SubField[0];
            RecordField field2    = RecordFieldUtility.AddSubFields(field1, subFields);

            Assert.AreSame(field1, field2);
            Assert.AreEqual(0, field1.SubFields.Count);
        }
Esempio n. 3
0
        public void RecordFieldUtility_AddSubFields_4()
        {
            RecordField     field1    = new RecordField();
            List <SubField> subFields = new List <SubField>
            {
                new SubField('a', "SubA"),
                new SubField('b', "SubB"),
                new SubField('c', "SubC"),
            };
            RecordField field2 = RecordFieldUtility.AddSubFields(field1, subFields);

            Assert.AreSame(field1, field2);
            Assert.AreEqual(3, field1.SubFields.Count);
        }