diff --git a/StarterNG.Tests/Fakes/InMemoryFileSystem.cs b/StarterNG.Tests/Fakes/InMemoryFileSystem.cs index 0709309..22c2868 100644 --- a/StarterNG.Tests/Fakes/InMemoryFileSystem.cs +++ b/StarterNG.Tests/Fakes/InMemoryFileSystem.cs @@ -275,6 +275,9 @@ public sealed class InMemoryFileSystem : IFileSystem return; slash = key.LastIndexOf('/'); } + // An absolute Unix path's parent is the root, "/", which normalises to "". + if (slash == 0) + _directories.Add(""); } private static string Normalize(string path) =>