public void Test_ShouldWebsiteBeBlocked_NullCheckList()
        {
            //Arrange
            var check = new BlacklistedSiteCheck(null);

            //Act
            check.ValidateUrl("http://google.com");
        }
        public void Test_ShouldWebsiteBeBlocked_NullUrl()
        {
            //Arrange
            var check = new BlacklistedSiteCheck(new List <string>());

            //Act
            check.ValidateUrl(null);
        }
        public void Test_ShouldWebsiteBeBlocked_MultipleWords_Matches()
        {
            //Arrange
            var check = new BlacklistedSiteCheck(new List <string>()
            {
                "blah", "google"
            });

            //Act
            var result = check.ValidateUrl("http://google.com");

            //Assert
            Assert.IsTrue(result);
        }
        public void Test_ShouldWebsiteBeBlocked_SingleWord_WordMatches_DifferentCase()
        {
            //Arrange
            var check = new BlacklistedSiteCheck(new List <string>()
            {
                "GOOGLE"
            });

            //Act
            var result = check.ValidateUrl("http://google.com");

            //Assert
            Assert.IsTrue(result);
        }
        public void Test_ShouldWebsiteBeBlocked_SingleWord_WordDoesntMatch()
        {
            //Arrange
            var check = new BlacklistedSiteCheck(new List <string>()
            {
                "word"
            });

            //Act
            var result = check.ValidateUrl("http://google.com");

            //Assert
            Assert.IsFalse(result);
        }