3 instantiations of DirectoryNode
Microsoft.NET.TestFramework (3)
Mock\FileSystemMockBuilder.cs (3)
102
current = new
DirectoryNode
();
134
current = new
DirectoryNode
();
154
DirectoryNode directoryNode =
new
();
29 references to DirectoryNode
Microsoft.NET.TestFramework (29)
Mock\FileSystemMockBuilder.cs (29)
97
public bool TryGetNodeParent(string path, out
DirectoryNode
current)
115
if (current.Subs.TryGetValue(p, out var node) && node is
DirectoryNode
directoryNode)
132
if (!Files.Volume.TryGetValue(pathModel.Volume, out
DirectoryNode
? current))
142
if (node is
DirectoryNode
directoryNode)
154
DirectoryNode
directoryNode = new();
155
directoryNode = (
DirectoryNode
)current.Subs.GetOrAdd(p, directoryNode);
177
if (TryGetNodeParent(path, out
DirectoryNode
current) && current != null)
180
possibleConflict is
DirectoryNode
)
196
public (
DirectoryNode
, FileNode) GetParentDirectoryAndFileNode(string path, Action onNotAFile)
198
if (TryGetNodeParent(path, out
DirectoryNode
current) && current != null)
220
DirectoryNode
current = GetParentOfDirectoryNode(path);
223
DirectoryNode
? directoryNode = current.Subs[pathModel.FileOrDirectoryName()] as
DirectoryNode
;
230
public
DirectoryNode
GetParentOfDirectoryNode(string path)
232
if (!TryGetNodeParent(path, out
DirectoryNode
current) || current == null)
350
if (_files.TryGetNodeParent(path, out
DirectoryNode
current))
367
if (_files.TryGetNodeParent(path, out
DirectoryNode
current) && current != null)
445
(
DirectoryNode
sourceParent, FileNode sourceFileNode)
450
if (_files.TryGetNodeParent(destination, out
DirectoryNode
current) && current != null)
477
if (_files.TryGetNodeParent(destination, out
DirectoryNode
current) && current != null)
495
if (_files.TryGetNodeParent(path, out
DirectoryNode
current))
524
if (_files is not null && _files.TryGetNodeParent(path, out
DirectoryNode
current))
529
&& node is
DirectoryNode
;
547
subs => subs.Where(s => s.Value is
DirectoryNode
)
589
DirectoryNode
? parentOfPath = _files?.GetParentOfDirectoryNode(path);
618
DirectoryNode
? sourceParent
625
if (_files is not null && _files.TryGetNodeParent(destination, out
DirectoryNode
current) && current != null)
665
public ConcurrentDictionary<string,
DirectoryNode
> Volume { get; } = new ConcurrentDictionary<string,
DirectoryNode
>();