コード例 #1
0
        public void Test_CreateWebsiteBlockerChecks_NullBlacklistedWords()
        {
            //Arrange
            var factory = new WebsiteBlockerCheckFactory();

            //Act
            factory.CreateWebsiteBlockerChecks(new List <string>(), new List <string>(), null);
        }
コード例 #2
0
        public void Test_CreateWebsiteBlockerChecks_NullWhitelistedSites()
        {
            //Arrange
            var factory = new WebsiteBlockerCheckFactory();

            //Act
            factory.CreateWebsiteBlockerChecks(new List <string>(), null, new List <string>());
        }
コード例 #3
0
        public void Test_CreateWebsiteBlockerChecks()
        {
            //Arrange
            var factory = new WebsiteBlockerCheckFactory();

            //Act
            var result = factory.CreateWebsiteBlockerChecks(new List <string>(), new List <string>(), new List <string>());

            //Assert
            Assert.AreEqual(3, result.Count);

            Assert.IsInstanceOfType(result[0], typeof(BlacklistedSiteCheck));
            Assert.IsInstanceOfType(result[1], typeof(HtmlCheck));
            Assert.IsInstanceOfType(result[2], typeof(WhitelistedSiteCheck));
        }