Exemple #1
0
        public void TestAndDisallowedOneTrue()
        {
            var filter1 = new DnsDelegateFilter(x => true);
            var filter2 = new DnsDelegateFilter(x => false);

            var dnsFilter = new DnsCompositeAndFilter(filter1, filter2);

            Assert.False(dnsFilter.IsPermitted(new DnsHeader()));
        }
Exemple #2
0
        public void TestAndAllowedByDefault()
        {
            var dnsFilter = new DnsCompositeAndFilter();

            Assert.True(dnsFilter.IsPermitted(new DnsHeader()));
        }