Beispiel #1
0
        public void ListsShouldBeEmptyAfterInsertingEmptyUserConfiguration()
        {
            //Arrange
            userConfiguration = new CurrentUserConfiguration();

            //Act
            proxyUserConfiguration.ApplyUserConfiguration(userConfiguration);

            //Assert
            proxyUserConfiguration.GetListOfBlockedSites().Count.Should().Be(0);
            proxyUserConfiguration.GetListOfRegexBlockedSites().Count.Should().Be(0);
            proxyUserConfiguration.GetListOfRedirectSites().Count.Should().Be(0);
            proxyUserConfiguration.GetListOfRegexRedirectSites().Count.Should().Be(0);
        }
Beispiel #2
0
        public void ListsShouldBeEmptyAfterInitialisation()
        {
            //Arrange & Act
            proxyUserConfiguration = new ProxyUserConfiguration(TempFolder.Name);

            //Assert
            proxyUserConfiguration.GetListOfBlockedSites().Count.Should().Be(0);
            proxyUserConfiguration.GetListOfRegexBlockedSites().Count.Should().Be(0);
            proxyUserConfiguration.GetListOfRedirectSites().Count.Should().Be(0);
            proxyUserConfiguration.GetListOfRegexRedirectSites().Count.Should().Be(0);
        }