Esempio n. 1
0
        private static void GEDCOMNotesTest(GDMNoteRecord noteRec, GDMIndividualRecord indiv)
        {
            GDMNotes notes = indiv.AddNote(noteRec);

            Assert.AreEqual(notes.Lines.Text, noteRec.Lines.Text);

            Assert.IsTrue(notes.IsPointer, "notes.IsPointer");

            Assert.IsFalse(notes.IsEmpty()); // its pointer

            notes.Clear();
        }
Esempio n. 2
0
        private static void GEDCOMNotesTest(GDMNoteRecord noteRec, GDMIndividualRecord indiv)
        {
            GDMNotes notes = indiv.AddNote(noteRec);

            Assert.IsTrue(notes.IsPointer, "notes.IsPointer");

            Assert.Throws <InvalidOperationException>(() => {
                var lines = notes.Lines;
            }, "Notes is a pointer");

            Assert.AreEqual(notes.XRef, noteRec.XRef);

            Assert.IsFalse(notes.IsEmpty()); // its pointer

            notes.Clear();
        }