public void ExecuteSearch_CareCommissioningAdmission_BooleanOperatorOr_ShouldReturnItems_0_1_2_3_4_5_6()
        {
            //arrange
            var expectedSearchResultIndexValues = new List<int> { 0, 1, 2, 3, 4, 5, 6 };
            var searchEngine =
                new DocumentSearchEngine(
                    _fileData,
                    new DocumentSearchCriteria
                    {
                        Keywords = new List<string>(3) { "Care", "Quality", "Commission" },
                        Operator = BooleanOperator.Or
                    });

            //act
            var searchResults = searchEngine.ExecuteSearch();

            //assert
            MakeAssertions(searchResults, expectedSearchResultIndexValues, 7);
        }
        public void ExecuteSearch_CareQualityCommissionadmission_BooleanOperatorAnd_ShouldReturnItem1()
        {
            //arrange
            var expectedSearchResultIndexValues = new List<int> { 1 };
            var searchEngine =
                new DocumentSearchEngine(
                    _fileData,
                    new DocumentSearchCriteria
                    {
                        Keywords = new List<string>(4) { "Care", "Quality", "Commission", "admission" },
                        Operator = BooleanOperator.And
                    });

            //act
            var searchResults = searchEngine.ExecuteSearch();

            //assert
            MakeAssertions(searchResults, expectedSearchResultIndexValues, 1);
        }
        public void ExecuteSearch_generalpopulationAlzheimer_BooleanOperatorAnd_ShouldReturnItem6()
        {
            //arrange
            var expectedSearchResultIndexValues = new List<int> { 6 };
            var searchEngine =
                new DocumentSearchEngine(
                    _fileData,
                    new DocumentSearchCriteria
                    {
                        Keywords = new List<string>(3) { "general", "population", "Alzheimer" },
                        Operator = BooleanOperator.And
                    });

            //act
            var searchResults = searchEngine.ExecuteSearch();

            //assert
            MakeAssertions(searchResults, expectedSearchResultIndexValues, 1);
        }
        public void ExecuteSearch_September2004_BooleanOperatorOr_ShouldReturnItem9()
        {
            //arrange
            var expectedSearchResultIndexValues = new List<int> { 9 };
            var searchEngine =
                new DocumentSearchEngine(
                    _fileData,
                    new DocumentSearchCriteria
                    {
                        Keywords = new List<string>(2) { "September", "2004"},
                        Operator = BooleanOperator.Or
                    });

            //act
            var searchResults = searchEngine.ExecuteSearch();

            //assert
            MakeAssertions(searchResults, expectedSearchResultIndexValues, 1);
        }