public void AllowMethod_Throws_WhenHttpVerbIsNull() { var ex = Record.Exception(() => _testObject.AllowMethod(null, "")); Assert.NotNull(ex); Assert.IsType <AuthPolicyBuilderException>(ex); Assert.Contains("verb cannot be null", ex.Message); }