From a710688426aa4b45f60917d4c668120a17411020 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Fri, 26 Jan 2018 09:51:06 -0800 Subject: [PATCH] Include messages with Assert.True/False --- .../CoreCLRTests/RazorSdkUsedTest_CoreCLR.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } }