Пример #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()));
        }