Class MvcViewLayoutTests
- Namespace
- ProjectTemplate.Web.Tests
- Assembly
- ProjectTemplate.Web.Tests.dll
Verifies the complete HTML document shared by controller-rendered views.
public sealed class MvcViewLayoutTests
- Inheritance
-
MvcViewLayoutTests
- Inherited Members
Methods
ControllerViews_RenderCompleteStyledDocuments(string, HttpStatusCode)
Verifies that account and browser error views include the application document shell and stylesheet.
[Theory("/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/tests/ProjectTemplate.Web.Tests/MvcViewLayoutTests.cs", 18)]
[InlineData(new object?[] { "/Account/Login", HttpStatusCode.OK })]
[InlineData(new object?[] { "/Account/AccessDenied", HttpStatusCode.Forbidden })]
[InlineData(new object?[] { "/missing-browser-page", HttpStatusCode.NotFound })]
public Task ControllerViews_RenderCompleteStyledDocuments(string path, HttpStatusCode expectedStatusCode)
Parameters
pathstringThe controller view endpoint to request.
expectedStatusCodeHttpStatusCodeThe status code expected from the endpoint.
Returns
- Task
A task that represents the asynchronous test operation.