diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Test/Internal/CompilerCacheTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Test/Internal/CompilerCacheTest.cs index d04a60d953..9558e0b174 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Test/Internal/CompilerCacheTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Test/Internal/CompilerCacheTest.cs @@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal var item = new Mock(); item .SetupGet(i => i.Path) - .Returns("/path"); + .Returns("/some/path"); item .SetupGet(i => i.Exists) .Returns(false); @@ -146,7 +146,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal // Act 2 // Delete the file from the file system and set it's expiration token. cacheContext = new CompilerCacheContext( - new NotFoundProjectItem("", ViewPath), + notFoundItem.Object, Enumerable.Empty(), _ => throw new Exception("Shouldn't be called.")); fileProvider.GetChangeToken(ViewPath).HasChanged = true;