private static void GEDCOMMultimediaLinkTest(GDMMultimediaRecord mediaRec, GDMIndividualRecord indiv) { GDMMultimediaLink mmLink = indiv.AddMultimedia(mediaRec); Assert.IsNotNull(mmLink.FileReferences); mmLink.Title = "Title1"; Assert.AreEqual("Title1", mmLink.Title); string buf = TestUtils.GetTagStreamText(mmLink, 1); Assert.AreEqual("1 OBJE @O2@\r\n" + "2 TITL Title1\r\n", buf); mmLink.ReplaceXRefs(new GDMXRefReplacer()); Assert.IsTrue(mmLink.IsPointer, "mmLink.IsPointer"); mmLink.IsPrimary = true; Assert.IsTrue(mmLink.IsPrimary, "mmLink.IsPrimary"); Assert.IsFalse(mmLink.IsEmpty(), "mmLink.IsEmpty()"); // its pointer mmLink.Clear(); }