public void testGetFullName()
        {
            GEDCOMPersonalName instance = new GEDCOMPersonalName(null, null, "", "");

            instance.SetNameParts("Ivan Ivanov", "Fedoroff", "");
            string expResult = "Ivan Ivanov Fedoroff";
            string result    = instance.FullName;

            Assert.AreEqual(expResult, result);
        }
        public void testSetNamePartsNull()
        {
            string             firstPart = "Ivan Ivanoff";
            string             surname   = "Fedoroff";
            string             lastPart  = null;
            GEDCOMPersonalName instance  = new GEDCOMPersonalName(null, null, "", "");

            instance.SetNameParts(firstPart, surname, lastPart);

            Assert.AreEqual("Ivan Ivanoff Fedoroff", instance.FullName);
        }
        public void testSetNameParts()
        {
            string             firstPart = "Ivan Ivanoff";
            string             surname   = "Fedoroff";
            string             lastPart  = "Esquire";
            GEDCOMPersonalName instance  = new GEDCOMPersonalName(null, null, "", "");

            instance.SetNameParts(firstPart, surname, lastPart);
            string result    = instance.FullName;
            string expResult = "Ivan Ivanoff Fedoroff Esquire";

            Assert.AreEqual(expResult, result);
        }
        public void testIsMatch9()
        {
            GEDCOMPersonalName instance1 = new GEDCOMPersonalName(null, null, "", "");

            instance1.ParseString("Vasiliy Pupkin");
            GEDCOMPersonalName instance2 = new GEDCOMPersonalName(null, null, "", "");

            instance2.SetNameParts("Vasiliy Pupkin", "", "");
            bool  onlyFirstPart = false;
            float expResult     = 100.0F;
            float result        = instance1.IsMatch(instance2, onlyFirstPart);

            Assert.AreEqual(expResult, result, 0.0);
        }
        public void testIsMatch4()
        {
            GEDCOMPersonalName instance1 = new GEDCOMPersonalName(null, null, "", "");

            instance1.ParseString("Ivan Ivanoff /Fedoroff/");
            GEDCOMPersonalName instance2 = new GEDCOMPersonalName(null, null, "", "");

            instance2.SetNameParts("Pyotr", "Fedoroff", "Esquire");
            bool  onlyFirstPart = false;
            float expResult     = 100.0F;
            float result        = instance1.IsMatch(instance2, onlyFirstPart);

            Assert.AreNotEqual(expResult, result);
        }
        public void testIsMatch8()
        {
            GEDCOMPersonalName instance1 = new GEDCOMPersonalName(null, null, "", "");

            instance1.ParseString("Ivan Ivanoff /?/");

            GEDCOMPersonalName instance2 = new GEDCOMPersonalName(null, null, "", "");

            instance2.SetNameParts("Ivan Ivanoff", "Unknown", "");

            bool  onlyFirstPart = false;
            float result        = instance1.IsMatch(instance2, onlyFirstPart);

            Assert.AreEqual(100.0f, result, 0.0);
        }