Пример #1
0
        public void Test_GEDCOMTagWithLists()
        {
            // GDMTagWithLists protected class, derived - GDMPlace
            using (GDMPlace tag = new GDMPlace(null)) {
                Assert.IsNotNull(tag);

                Assert.IsNotNull(tag.Notes);
                Assert.IsNotNull(tag.SourceCitations);
                Assert.IsNotNull(tag.MultimediaLinks);

                Assert.IsNull(tag.AddNote(null));
                Assert.IsNull(tag.AddSource(null, "page", 1));
                Assert.IsNull(tag.AddMultimedia(null));

                Assert.IsNotNull(tag.AddNote(new GDMNoteRecord(null)));
                Assert.IsNotNull(tag.AddSource(new GDMSourceRecord(null), "page", 1));
                Assert.IsNotNull(tag.AddMultimedia(new GDMMultimediaRecord(null)));
            }
        }