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