Ejemplo n.º 1
0
        public static void InitGEDCOMProviderTest()
        {
            GKUtils.InitGEDCOM();

            var tagProps = GEDCOMTagsTable.GetTagProps("BIRT");

            Assert.IsNotNull(tagProps);
            Assert.AreEqual((int)GEDCOMTagType.BIRT, tagProps.TagId);
        }
Ejemplo n.º 2
0
        public static void InitGEDCOMProviderTest()
        {
            // forced call of GEDCOMProvider static constructor
            // this is important for a number of tests that require initialization of the GEDCOM tag table
            // System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(typeof(GEDCOMProvider).TypeHandle);
            var formats = GEDCOMProvider.GEDCOMFormats;

            Assert.IsNotNull(formats);

            var tagProps = GEDCOMTagsTable.GetTagProps("BIRT");

            Assert.IsNotNull(tagProps);
            Assert.AreEqual((int)GEDCOMTagType.BIRT, tagProps.TagId);
        }