/// <summary> /// Support function. Parse GEDCOM string. /// </summary> public static GDMIndividualRecord ParseIndiRec(string text) { GDMTree tree = new GDMTree(); GEDCOMProvider gp = new GEDCOMProvider(tree); try { gp.LoadFromString(text); } catch (Exception) { } Assert.AreEqual(1, tree.RecordsCount); GDMIndividualRecord rec = tree[0] as GDMIndividualRecord; Assert.IsNotNull(rec); return(rec); }