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())); }
public void TestOrAllowedByDefault() { var dnsFilter = new DnsCompositeOrFilter(); Assert.True(dnsFilter.IsPermitted(new DnsHeader())); }