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