public async Task Should_cleanup_host_if_https_schema_contains_default_port() { var httpContext = new DefaultHttpContext(); httpContext.Request.Scheme = "https"; httpContext.Request.Host = new HostString("host", 443); await sut.Invoke(httpContext); Assert.Null(httpContext.Request.Host.Port); Assert.True(isNextCalled); }