var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
{
{ @"myfile.txt", new MockFileData("A") },
}, @"current");
makes
fileSystem.AllFiles.Single()
return
"current\current\current\myfile.txt"
which is two too many.
I also believe there should be a prepending \.
A remedy is to prepend "current" with a slash like so"
var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
{
{ @"myfile.txt", new MockFileData("A") },
}, @"\current");
to give the result
"\current\myfile.txt"
Although I present a work around it might be considered a but as it is imho an unexpected behaviour.
makes
fileSystem.AllFiles.Single()return
"current\current\current\myfile.txt"which is two too many.
I also believe there should be a prepending
\.A remedy is to prepend "current" with a slash like so"
to give the result
"\current\myfile.txt"Although I present a work around it might be considered a but as it is imho an unexpected behaviour.