示例#1
0
        public void TestOrDisallowed()
        {
            var filter1 = new DnsDelegateFilter(x => false);
            var filter2 = new DnsDelegateFilter(x => false);

            var dnsFilter = new DnsCompositeOrFilter(filter1, filter2);

            Assert.False(dnsFilter.IsPermitted(new DnsHeader()));
        }
示例#2
0
        public void TestOrAllowedByDefault()
        {
            var dnsFilter = new DnsCompositeOrFilter();

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