コード例 #1
0
        public void TestReadMatchScoresForPersons()
        {
            var query = new GedcomxPersonSearchQueryBuilder()
                        .GivenName("GedcomX")
                        .Surname("User")
                        .Gender("Male")
                        .BirthDate("June 1800")
                        .BirthPlace("Provo, Utah, Utah, United States")
                        .DeathDate("July 14, 1900")
                        .DeathPlace("Provo, Utah, Utah, United States");
            var state = tree.SearchForPersonMatches(query);

            Assert.DoesNotThrow(() => state.IfSuccessful());
            Assert.IsNotNull(state.Results);
            Assert.IsNotNull(state.Results.Entries);
            Assert.Greater(state.Results.Entries.Count, 0);
            Assert.Greater(state.Results.Entries[0].Score, 0);
        }