Пример #1
0
        private void VerifyNote(Atest torun)
        {
            // Verify NOTE specific details
            GEDCommon res = torun("NOTE", "1 CONC fumbar");
            var       rec = res as NoteRecord;

            Assert.IsNotNull(rec);
            Assert.AreEqual("fumbar", rec.Text);
        }
Пример #2
0
        private void VerifyIndi(Atest torun)
        {
            // Verify INDI specific details
            GEDCommon res = torun("INDI", "1 SEX U");
            var       rec = res as IndiRecord;

            Assert.IsNotNull(rec);
            Assert.AreEqual('U', rec.Sex);
        }
Пример #3
0
        private void VerifySour(Atest torun)
        {
            // Verify REPO specific details
            GEDCommon res = torun("SOUR", "1 ABBR fumbar");
            var       rec = res as SourceRecord;

            Assert.IsNotNull(rec);
            Assert.AreEqual("fumbar", rec.Abbreviation);
        }
Пример #4
0
        private void VerifyRepo(Atest torun)
        {
            // Verify REPO specific details
            GEDCommon res = torun("REPO", "1 NAME fumbar");
            var       rec = res as Repository;

            Assert.IsNotNull(rec);
            Assert.AreEqual("fumbar", rec.Name);
        }
Пример #5
0
        private void VerifyFam(Atest torun)
        {
            // Verify FAM specific details
            GEDCommon res = torun("FAM", "1 HUSB @P1@");
            var       rec = res as FamRecord;

            Assert.IsNotNull(rec);
            Assert.AreEqual(1, rec.Dads.Count);
            Assert.AreEqual("P1", rec.Dads[0]);
        }
Пример #6
0
        private void VerifyObje(Atest torun)
        {
            GEDCommon res = torun("OBJE", "1 FILE ref\n2 FORM tif");
            var       rec = (res as MediaRecord);

            Assert.IsNotNull(rec);
            Assert.AreEqual(1, rec.Files.Count);
            Assert.AreEqual("ref", rec.Files[0].FileRefn);
            Assert.AreEqual("tif", rec.Files[0].Form);
        }