tests/NuGetGallery.FunctionalTests/ErrorHandling/ErrorHandlingTests.cs
/// <summary>
/// Verify behavior when the pretty HTTP 500 page fails itself.
/// </summary>
Verify behavior when the pretty HTTP 500 page fails itself.
Verify behavior when the pretty HTTP 500 page fails itself .
[Fact]
        [Priority(2)]
        [Category("P2Tests")]
        public async Task ErrorInErrorPageWithoutPath()
        {
            var cookies = new SimulatedErrorRequest(EndpointType.Pages, SimulatedErrorType.ExceptionInDedicatedErrorPage).GetCookies();
            var response = await GetTestResponseAsync("/Errors/500", cookies);
            Validator.SimpleHtml(HttpStatusCode.InternalServerError);
        }
[ Fact ] [ Priority ( 2 ) ] [ Category ( " " ) ] public async Task ErrorInErrorPageWithoutPath ( ) { var cookies = new SimulatedErrorRequest ( EndpointType . Pages , SimulatedErrorType . ExceptionInDedicatedErrorPage ) . GetCookies ( ) ; var response = await GetTestResponseAsync ( " " , cookies ) ; Validator . SimpleHtml ( HttpStatusCode . InternalServerError ) ; }
Verify behavior when the pretty HTTP 500 page fails itself.
Verify behavior when the pretty HTTP 500 page fails itself .
// Arrange // Act // Assert