17 references to Path
Microsoft.AspNetCore.Razor.Language.UnitTests (7)
VirtualRazorProjectFileSystemTest.cs (7)
255
Assert.Equal("/Pages/", directory.
Path
);
262
Assert.Equal("/Pages/Shared/", subDirectory.
Path
);
287
Assert.Equal("/Pages/", directory.
Path
);
294
Assert.Equal("/Pages/Shared/", subDirectory.
Path
);
320
Assert.Equal("/Pages/", directory.
Path
);
327
Assert.Equal("/Pages/Products/", subDirectory.
Path
);
334
Assert.Equal("/Pages/Accounts/", subDirectory.
Path
);
Microsoft.CodeAnalysis.Razor.Compiler (10)
Language\VirtualRazorProjectFileSystem.cs (10)
47
if (!filePath.StartsWith(
Path
, StringComparison.OrdinalIgnoreCase))
49
var message = Resources.FormatVirtualFileSystem_FileDoesNotBelongToDirectory(fileNode.Path,
Path
);
62
if (!path.StartsWith(
Path
, StringComparison.OrdinalIgnoreCase))
64
var message = Resources.FormatVirtualFileSystem_FileDoesNotBelongToDirectory(path,
Path
);
89
if (!path.StartsWith(
Path
, StringComparison.OrdinalIgnoreCase))
91
throw new InvalidOperationException(Resources.FormatVirtualFileSystem_FileDoesNotBelongToDirectory(path,
Path
));
104
var directoryLength = directory.
Path
.Length;
140
while ((index = path.IndexOf('/', directory.
Path
.Length)) != -1 && index != path.Length)
174
var directoryPath = currentDirectory.
Path
;
175
var startIndex = parentDirectory.
Path
.Length;