|
return mockFileDataAccessor.GetFile(path).Contents; |
If you do ReadAllBytes on a real System.IO.File you would have 2 independent copies, one on the FS and one in memory. My understanding of the linked code is that the mock would only produce one instance. Is this correct behavior or should it change? I am happy to push a PR if needed.
System.IO.Abstractions/src/System.IO.Abstractions.TestingHelpers/MockFile.cs
Line 541 in 0326f62
If you do ReadAllBytes on a real System.IO.File you would have 2 independent copies, one on the FS and one in memory. My understanding of the linked code is that the mock would only produce one instance. Is this correct behavior or should it change? I am happy to push a PR if needed.