public void testCreate()
        {
            GEDCOMTree   owner     = null;
            GEDCOMObject parent    = null;
            string       tagName   = "";
            string       tagValue  = "";
            GEDCOMTag    expResult = null;
            GEDCOMTag    result    = GEDCOMPersonalName.Create(owner, parent, tagName, tagValue);

            Assert.IsNotNull(result);
        }
Esempio n. 2
0
        public override void Assign(GEDCOMTag source)
        {
            GEDCOMIndividualRecord sourceRec = source as GEDCOMIndividualRecord;

            if (sourceRec == null)
            {
                throw new ArgumentException(@"Argument is null or wrong type", "source");
            }

            base.Assign(source);

            foreach (GEDCOMPersonalName srcName in sourceRec.fPersonalNames)
            {
                GEDCOMPersonalName copyName = (GEDCOMPersonalName)GEDCOMPersonalName.Create(Owner, this, "", "");
                copyName.Assign(srcName);
                AddPersonalName(copyName);
            }
        }
        public void testCreate()
        {
            GEDCOMTag result = GEDCOMPersonalName.Create(null, null, "", "");

            Assert.IsNotNull(result);
        }