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