Include messages with Assert.True/False
This commit is contained in:
parent
daf4d0f766
commit
a710688426
|
|
@ -29,6 +29,8 @@ namespace FunctionalTests
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var deployment = await Fixture.CreateDeploymentAsync(loggerFactory);
|
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
|
// Act
|
||||||
var response = await deployment.HttpClient.GetStringWithRetryAsync(
|
var response = await deployment.HttpClient.GetStringWithRetryAsync(
|
||||||
|
|
@ -36,8 +38,8 @@ namespace FunctionalTests
|
||||||
loggerFactory.CreateLogger(Fixture.ApplicationName));
|
loggerFactory.CreateLogger(Fixture.ApplicationName));
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.False(File.Exists(Path.Combine(deployment.ContentRoot, "ApplicationWithRazorSdkUsed.PrecompiledViews.dll")));
|
Assert.False(File.Exists(expectedPrecompiledViewsLocation), $"{expectedPrecompiledViewsLocation} existed, but shouldn't have.");
|
||||||
Assert.True(File.Exists(Path.Combine(deployment.ContentRoot, "ApplicationWithRazorSdkUsed.Views.dll")));
|
Assert.True(File.Exists(expectedViewLocation), $"{expectedViewLocation} didn't exist.");
|
||||||
TestEmbeddedResource.AssertContent("ApplicationWithRazorSdkUsed.Home.Index.txt", response);
|
TestEmbeddedResource.AssertContent("ApplicationWithRazorSdkUsed.Home.Index.txt", response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue