16 references to TestRazorProjectItem
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (16)
ChecksumValidatorTest.cs (11)
100
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/_ViewImports.cstml", "dkdkfkdf")); // This will be ignored
119
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/Index.cstml", "other content"));
138
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/Index.cstml", "some content"));
157
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/Index.cstml", "some content"));
158
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/_ViewImports.cstml", "some other import"));
178
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/Index.cstml", "some content"));
179
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/_ViewImports.cstml", "some import"));
180
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/_ViewImports.cstml", "some other import"));
200
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/Index.cstml", "some content"));
201
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/Home/_ViewImports.cstml", "some import"));
202
ProjectFileSystem.Add(new
TestRazorProjectItem
("/Views/_ViewImports.cstml", "some other import"));
CompilerFailedExceptionFactoryTest.cs (5)
22
var projectItem = new
TestRazorProjectItem
(viewPath, "<span name=\"@(User.Id\">");
75
var projectItem = new
TestRazorProjectItem
(viewPath, "<span name=\"@(User.Id\">", physicalPath: physicalPath);
101
var projectItem = new
TestRazorProjectItem
(viewPath, fileContent);
122
var projectItem = new
TestRazorProjectItem
(viewPath, fileContent);
123
var importsItem = new
TestRazorProjectItem
(importsPath, importsContent);