public void Test_AddPhoneNumber2()
        {
            string        value1   = "(214) 748-3647";
            string        value2   = "(999) 748-3647";
            GEDCOMAddress instance = (GEDCOMAddress)GEDCOMAddress.Create(null, null, "", "");

            instance.AddPhoneNumber(value1);
            instance.AddPhoneNumber(value2);
            GEDCOMList <GEDCOMTag> pl = instance.PhoneNumbers;

            Assert.AreEqual(2, pl.Count);
            string res = pl[0].StringValue;

            Assert.AreEqual(res, value1);
            res = pl[1].StringValue;
            Assert.AreEqual(res, value2);
        }
示例#2
0
        public void testAddPhoneNumber()
        {
            string        value    = "(214) 748-3647";
            GEDCOMAddress instance = (GEDCOMAddress)GEDCOMAddress.Create(null, null, "", "");

            instance.AddPhoneNumber(value);
            GEDCOMList <GEDCOMTag> pl = instance.PhoneNumbers;

            Assert.AreEqual(1, pl.Count);
            string res = pl[0].StringValue;

            Assert.AreEqual(res, value);
        }