React to resource changes

This commit is contained in:
David Fowler 2014-06-25 22:48:32 -07:00
parent 0d7f38e10e
commit e6ec6e0aba
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// The K runtime compiles every file under compiler/resources as a resource at runtime with the same name
// as the file name, in order to update a baseline you just need to change the file in that folder.
var expectedContent = await _resourcesAssembly.ReadResourceAsStringAsync("BasicWebSite.Home.Index.html");
var expectedContent = await _resourcesAssembly.ReadResourceAsStringAsync("compiler/resources/BasicWebSite.Home.Index.html");
// Act
@ -60,7 +60,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// Arrange
var server = TestServer.Create(_provider, _app);
var client = server.Handler;
var expectedContent = await _resourcesAssembly.ReadResourceAsStringAsync("BasicWebSite.Home.PlainView.html");
var expectedContent = await _resourcesAssembly.ReadResourceAsStringAsync("compiler/resources/BasicWebSite.Home.PlainView.html");
// Act
var result = await client.GetAsync("http://localhost/Home/PlainView");

View File

@ -116,8 +116,8 @@ MyType2 @MyPropertyName2
};
host.NamespaceImports.Clear();
var engine = new RazorTemplateEngine(host);
var source = ReadResource("Inject.cshtml");
var expectedCode = ReadResource("Inject.cs");
var source = ReadResource("TestFiles/Input/Inject.cshtml");
var expectedCode = ReadResource("TestFiles/Output/Inject.cs");
var expectedLineMappings = new List<LineMapping>
{
BuildLineMapping(1, 0, 1, 32, 3, 0, 17),