public async Task should_use_mvc() { HttpContext httpContext = null; await server.SendAsync(ctx => { httpContext = ctx; ctx.Request.Path = IntegrationTests.HomePageSpecs.HomePagePath; }); var logs = _app.GetLogs(); logs.ShouldNotBeNull(); logs.ShouldContain(item => item.Category.StartsWith("Microsoft.AspNetCore.Mvc")); }