Fix Build Break
This commit is contained in:
parent
b2d95ffb21
commit
cf4742735d
|
|
@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
||||||
var item = new Mock<RazorProjectItem>();
|
var item = new Mock<RazorProjectItem>();
|
||||||
item
|
item
|
||||||
.SetupGet(i => i.Path)
|
.SetupGet(i => i.Path)
|
||||||
.Returns("/path");
|
.Returns("/some/path");
|
||||||
item
|
item
|
||||||
.SetupGet(i => i.Exists)
|
.SetupGet(i => i.Exists)
|
||||||
.Returns(false);
|
.Returns(false);
|
||||||
|
|
@ -146,7 +146,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
||||||
// Act 2
|
// Act 2
|
||||||
// Delete the file from the file system and set it's expiration token.
|
// Delete the file from the file system and set it's expiration token.
|
||||||
cacheContext = new CompilerCacheContext(
|
cacheContext = new CompilerCacheContext(
|
||||||
new NotFoundProjectItem("", ViewPath),
|
notFoundItem.Object,
|
||||||
Enumerable.Empty<RazorProjectItem>(),
|
Enumerable.Empty<RazorProjectItem>(),
|
||||||
_ => throw new Exception("Shouldn't be called."));
|
_ => throw new Exception("Shouldn't be called."));
|
||||||
fileProvider.GetChangeToken(ViewPath).HasChanged = true;
|
fileProvider.GetChangeToken(ViewPath).HasChanged = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue