public void Ctor_SetsCorrectProperties() {
            // Arrange, Act
            var handler = new RedirectHttpHandler(targetUrl: "~/foo", permanent: true, isReusable: false);

            // Assert
            PAssert.IsTrue(() => handler.TargetUrl == "~/foo");
            PAssert.IsTrue(() => handler.Permanent);
            PAssert.IsTrue(() => handler.IsReusable == false);
        }
        public void GetHttpHandler_ReturnsItself() {
            // Arrange
            var handler = new RedirectHttpHandler(targetUrl: "~/foo", permanent: true, isReusable: false);

            // Act
            var httpHandler = handler.GetHttpHandler(new Mock<RequestContext>().Object);

            // Assert
            PAssert.IsTrue(() => handler == httpHandler);
        }