Example #1
0
        public void DenyMethod_Throws_WhenHttpVerbIsNull()
        {
            var ex = Record.Exception(() => _testObject.DenyMethod(null, ""));

            Assert.NotNull(ex);
            Assert.IsType <AuthPolicyBuilderException>(ex);
            Assert.Contains("verb cannot be null", ex.Message);
        }