public void GEDCOMDocument_SelectFamilyRecords_Throws_On_Null_Or_Empty_IndividualId(string fileName, string individualId)
        {
            //Arrange
            var document = new GEDCOMDocument();

            document.LoadGEDCOM(GetEmbeddedFileString(fileName));

            //Act, Assert
            Assert.Throws <ArgumentNullException>(() => document.SelectFamilyRecords(individualId));
        }
        public void GEDCOMDocument_SelectFamilyRecords_Returns_List_Of_Families(string fileName, string individualId, int recordCount)
        {
            //Arrange
            var document = new GEDCOMDocument();

            document.LoadGEDCOM(GetEmbeddedFileString(fileName));

            //Act
            var records = document.SelectFamilyRecords(individualId);

            //Assert
            Assert.AreEqual(recordCount, records.Count());
        }
        public void GEDCOMDocument_SelectFamilyRecords_Returns_Family_When_Given_Valid_HusbandId(string fileName, string husbandId, string familyId)
        {
            //Arrange
            var document = new GEDCOMDocument();

            document.LoadGEDCOM(GetEmbeddedFileString(fileName));

            //Act
            var record = document.SelectFamilyRecords(husbandId).SingleOrDefault();

            //Assert
            Assert.IsNotNull(record);
            Assert.AreEqual(record.Id, familyId);
        }