Merge from release
This commit is contained in:
commit
9830dffabd
|
|
@ -479,6 +479,18 @@ namespace Microsoft.AspNetCore.Hosting
|
|||
Assert.Equal(PlatformServices.Default.Application.ApplicationBasePath, appEnv.ApplicationBasePath);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Configure_SupportsNonStaticMethodDelegate()
|
||||
{
|
||||
var host = new WebHostBuilder()
|
||||
.UseServer(new TestServer())
|
||||
.Configure(app => { })
|
||||
.Build();
|
||||
|
||||
var hostingEnv = host.Services.GetService<IHostingEnvironment>();
|
||||
Assert.Equal("Microsoft.AspNetCore.Hosting.Tests", hostingEnv.ApplicationName);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Configure_SupportsStaticMethodDelegate()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue