diff --git a/test/FunctionalTests/CoreCLRTests/RazorSdkUsedTest_CoreCLR.cs b/test/FunctionalTests/CoreCLRTests/RazorSdkUsedTest_CoreCLR.cs index 4c233953d2..6f1a4ff918 100644 --- a/test/FunctionalTests/CoreCLRTests/RazorSdkUsedTest_CoreCLR.cs +++ b/test/FunctionalTests/CoreCLRTests/RazorSdkUsedTest_CoreCLR.cs @@ -29,6 +29,8 @@ namespace FunctionalTests { // Arrange var deployment = await Fixture.CreateDeploymentAsync(loggerFactory); + var expectedViewLocation = Path.Combine(deployment.ContentRoot, "ApplicationWithRazorSdkUsed.Views.dll"); + var expectedPrecompiledViewsLocation = Path.Combine(deployment.ContentRoot, "ApplicationWithRazorSdkUsed.PrecompiledViews.dll"); // Act var response = await deployment.HttpClient.GetStringWithRetryAsync( @@ -36,8 +38,8 @@ namespace FunctionalTests loggerFactory.CreateLogger(Fixture.ApplicationName)); // Assert - Assert.False(File.Exists(Path.Combine(deployment.ContentRoot, "ApplicationWithRazorSdkUsed.PrecompiledViews.dll"))); - Assert.True(File.Exists(Path.Combine(deployment.ContentRoot, "ApplicationWithRazorSdkUsed.Views.dll"))); + Assert.False(File.Exists(expectedPrecompiledViewsLocation), $"{expectedPrecompiledViewsLocation} existed, but shouldn't have."); + Assert.True(File.Exists(expectedViewLocation), $"{expectedViewLocation} didn't exist."); TestEmbeddedResource.AssertContent("ApplicationWithRazorSdkUsed.Home.Index.txt", response); } }