Esempio n. 1
0
        public void HasKeywords_ShouldReturnFalse()
        {
            //Arrange
            IWebRequest    webRequest     = new WebRequestImplementation();
            SearchExecutor searchExecutor = new SearchExecutor(webRequest);

            //Act
            var result = searchExecutor.HasKeywords();

            //Assert
            result.Should().BeFalse();
        }
Esempio n. 2
0
        public void HasKeywords_ShouldReturnTrue()
        {
            //Arrange
            IWebRequest webRequest = new WebRequestImplementation();

            string[] keywords = new string[2] {
                ".net", "java"
            };
            SearchExecutor searchExecutor = new SearchExecutor(webRequest, keywords);

            //Act
            var result = searchExecutor.HasKeywords();

            //Assert
            result.Should().BeTrue();
        }