You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the test constructor I have a MockFileSystem(IDictionary, string) constructor call
This constructor throws:
System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
Stack trace:
at System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType)
at System.IO.Abstractions.TestingHelpers.MockFileSystem.AddDirectory(String path
at System.IO.Abstractions.TestingHelpers.MockFileSystem..ctor(IDictionary`2 files, String currentDirectory)
Relevant lines:
_darkFile= Path.Combine("baseDir","subDir","darkFile");_brightFile= Path.Combine("baseDir","subDir","brightFile");_defectFile= Path.Combine("baseDir","subDir","defectFile");_correction=newMock<ICorrection>();_fs=new MockFileSystem(newDictionary<string,MockFileData>{{ _darkFile,new MockFileData(string.Empty)},{ _brightFile,new MockFileData(string.Empty)},{ _defectFile,new MockFileData(string.Empty)},},".");// When I use the default `""`, no exception is thrown
The text was updated successfully, but these errors were encountered:
Using version 4.1.6 from NuGet, Windows, xUnit
MockFileSystem(IDictionary, string)
constructor callRelevant lines:
The text was updated successfully, but these errors were encountered: