Fixing build break
Change the casing of _ViewStart.cshtml to match the expected case.
This commit is contained in:
parent
d8455c3e64
commit
6ec85baa22
|
|
@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
var viewsDirectory = Path.Combine(applicationEnvironment.ApplicationBasePath, "Views", "Home");
|
var viewsDirectory = Path.Combine(applicationEnvironment.ApplicationBasePath, "Views", "Home");
|
||||||
var layoutContent = File.ReadAllText(Path.Combine(viewsDirectory, "Layout.cshtml"));
|
var layoutContent = File.ReadAllText(Path.Combine(viewsDirectory, "Layout.cshtml"));
|
||||||
var indexContent = File.ReadAllText(Path.Combine(viewsDirectory, "Index.cshtml"));
|
var indexContent = File.ReadAllText(Path.Combine(viewsDirectory, "Index.cshtml"));
|
||||||
var viewstartContent = File.ReadAllText(Path.Combine(viewsDirectory, "_viewstart.cshtml"));
|
var viewstartContent = File.ReadAllText(Path.Combine(viewsDirectory, "_ViewStart.cshtml"));
|
||||||
|
|
||||||
var server = TestServer.Create(_services, _app);
|
var server = TestServer.Create(_services, _app);
|
||||||
var client = server.CreateClient();
|
var client = server.CreateClient();
|
||||||
|
|
@ -65,7 +65,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
|
|
||||||
// Act - 3
|
// Act - 3
|
||||||
// Touch the _ViewStart file and verify it causes all files to recompile.
|
// Touch the _ViewStart file and verify it causes all files to recompile.
|
||||||
await TouchFile(viewsDirectory, "_viewstart.cshtml");
|
await TouchFile(viewsDirectory, "_ViewStart.cshtml");
|
||||||
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
||||||
|
|
||||||
// Assert - 3
|
// Assert - 3
|
||||||
|
|
@ -88,7 +88,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
|
|
||||||
// Act - 5
|
// Act - 5
|
||||||
// Touch the _ViewStart file. This time, we'll verify the Non-precompiled -> Non-precompiled workflow.
|
// Touch the _ViewStart file. This time, we'll verify the Non-precompiled -> Non-precompiled workflow.
|
||||||
await TouchFile(viewsDirectory, "_viewstart.cshtml");
|
await TouchFile(viewsDirectory, "_ViewStart.cshtml");
|
||||||
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
||||||
|
|
||||||
// Assert - 5
|
// Assert - 5
|
||||||
|
|
@ -100,7 +100,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
|
|
||||||
// Act - 6
|
// Act - 6
|
||||||
// Add a new _ViewStart file
|
// Add a new _ViewStart file
|
||||||
File.WriteAllText(Path.Combine(viewsDirectory, "..", "_viewstart.cshtml"), string.Empty);
|
File.WriteAllText(Path.Combine(viewsDirectory, "..", "_ViewStart.cshtml"), string.Empty);
|
||||||
await Task.Delay(_cacheDelayInterval);
|
await Task.Delay(_cacheDelayInterval);
|
||||||
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
||||||
|
|
||||||
|
|
@ -113,7 +113,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
|
|
||||||
// Act - 7
|
// Act - 7
|
||||||
// Remove new _ViewStart file
|
// Remove new _ViewStart file
|
||||||
File.Delete(Path.Combine(viewsDirectory, "..", "_viewstart.cshtml"));
|
File.Delete(Path.Combine(viewsDirectory, "..", "_ViewStart.cshtml"));
|
||||||
await Task.Delay(_cacheDelayInterval);
|
await Task.Delay(_cacheDelayInterval);
|
||||||
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
responseContent = await client.GetStringAsync("http://localhost/Home/Index");
|
||||||
|
|
||||||
|
|
@ -138,7 +138,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
||||||
{
|
{
|
||||||
File.WriteAllText(Path.Combine(viewsDirectory, "Layout.cshtml"), layoutContent);
|
File.WriteAllText(Path.Combine(viewsDirectory, "Layout.cshtml"), layoutContent);
|
||||||
File.WriteAllText(Path.Combine(viewsDirectory, "Index.cshtml"), indexContent);
|
File.WriteAllText(Path.Combine(viewsDirectory, "Index.cshtml"), indexContent);
|
||||||
File.WriteAllText(Path.Combine(viewsDirectory, "_viewstart.cshtml"), viewstartContent);
|
File.WriteAllText(Path.Combine(viewsDirectory, "_ViewStart.cshtml"), viewstartContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue