コード例 #1
0
        public void Failed_ViewResult_Should_Retry_Based_On_StatusCode_And_Message(HttpStatusCode statusCode, string message, bool expected)
        {
            var viewResult = new ViewResult <dynamic>
            {
                StatusCode = statusCode,
                Error      = message
            };

            Assert.AreEqual(expected, viewResult.ShouldRetry());
            Assert.AreEqual(expected, !viewResult.CannotRetry());
        }