Skip to content

Commit 0104914

Browse files
committed
Update test scenario when using app manifest
1 parent 656ca5f commit 0104914

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureInheritanceTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public void TestingInfrastructure_WebHost_WithWebHostBuilderRespectsCustomizatio
2929
Assert.Equal(new[] { "ConfigureWebHost", "Customization", "FurtherCustomization" }, factory.ConfigureWebHostCalled.ToArray());
3030
Assert.True(factory.CreateServerCalled);
3131
Assert.True(factory.CreateWebHostBuilderCalled);
32-
Assert.True(factory.GetTestAssembliesCalled);
32+
// GetTestAssemblies is not called when reading content roots from MvcAppManifest
33+
Assert.False(factory.GetTestAssembliesCalled);
3334
Assert.True(factory.CreateHostBuilderCalled);
3435
Assert.False(factory.CreateHostCalled);
3536
}
@@ -46,7 +47,7 @@ public void TestingInfrastructure_GenericHost_WithWithHostBuilderRespectsCustomi
4647

4748
// Assert
4849
Assert.Equal(new[] { "ConfigureWebHost", "Customization", "FurtherCustomization" }, factory.ConfigureWebHostCalled.ToArray());
49-
Assert.True(factory.GetTestAssembliesCalled);
50+
Assert.False(factory.GetTestAssembliesCalled);
5051
Assert.True(factory.CreateHostBuilderCalled);
5152
Assert.True(factory.CreateHostCalled);
5253
Assert.False(factory.CreateServerCalled);

0 commit comments

Comments
 (0)