예제 #1
0
        public async Task Never()
        {
            var policy = new PolicyNever <string>();

            Assert.IsFalse(await policy.IsAllowedAsync("foo"));
            Assert.IsTrue(await policy.IsNotAllowedAsync("foo"));
        }
예제 #2
0
        public void Never()
        {
            var policy = new PolicyNever <string>();

            Assert.IsFalse(policy.IsAllowed("foo"));
        }