public void Execute_WithNullContext_Throws()
        {
            // Arrange
            MethodNotAllowedAction action  = new MethodNotAllowedAction();
            IRewriteContext        context = null;

            // Act/Assert
            ExceptionAssert.Throws <ArgumentNullException>(() => action.Execute(context));
        }
        public void Execute_SetsStatusCode_ReturnsStopProcessing()
        {
            // Arrange
            MethodNotAllowedAction action  = new MethodNotAllowedAction();
            IRewriteContext        context = new MockRewriteContext();

            // Act
            RewriteProcessing result = action.Execute(context);

            // Assert
            Assert.AreEqual(HttpStatusCode.MethodNotAllowed, context.StatusCode);
            Assert.AreEqual(RewriteProcessing.StopProcessing, result);
        }