Environment
- Xamarin Studio 4.3.4
- Mono 3.4.0
Reproduction
Stacktrace
System.IO.Abstractions.TestingHelpers.MockPath.GetFullPath (path="C:\\Foo\\Bar")
System.IO.Abstractions.TestingHelpers.MockFileSystem.FixPath (path="C:\\Foo\\Bar")
System.IO.Abstractions.TestingHelpers.MockFileSystem..ctor (files=(null), currentDirectory="C:\\Foo\\Bar")
System.IO.Abstractions.TestingHelpers.MockFileSystem..ctor ()
Debugging shows that the MockFileSystem constructor calls FixPath which in turns calls this.pathField.GetFullPath (implemented by MockPath.GetFullPath). There's a call to this.mockFileDataAccessor.Directory.GetCurrentDirectory in GetFullPath which fails since MockFileSystem.Directory is null at this point.
Environment
Reproduction
Stacktrace
Debugging shows that the MockFileSystem constructor calls
FixPathwhich in turns callsthis.pathField.GetFullPath(implemented byMockPath.GetFullPath). There's a call tothis.mockFileDataAccessor.Directory.GetCurrentDirectoryin GetFullPath which fails since MockFileSystem.Directory is null at this point.