public async Task Never() { var policy = new PolicyNever <string>(); Assert.IsFalse(await policy.IsAllowedAsync("foo")); Assert.IsTrue(await policy.IsNotAllowedAsync("foo")); }
public void Never() { var policy = new PolicyNever <string>(); Assert.IsFalse(policy.IsAllowed("foo")); }