TestableIO/System.IO.Abstractions
Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!
C#MIT
Issues
- 6
MockFileSystem.File.Move on Windows and .Net 8 doesn't rename a file name's case
#1140 opened by El-Gor-do - 2
OpenWrite doesn't prevent writing
#1156 opened by Benjamin-Berry - 4
Be able to mock temporary directories
#1154 opened by romainf-ubi - 2
MockFileSystem.Directory.Move fails on Windows if destination has different case from source
#1138 opened by El-Gor-do - 1
The mock FileStream class does not handle shared file contents correctly.
#1131 opened by BillArmstrong - 2
[Test] public void MockFileInfo_Exists_LazyLoadsData() { // Arrange var fileSystem = new MockFileSystem(); var path1 = XFS.Path(@"c:\temp\file1.txt"); var fileInfo = fileSystem.FileInfo.FromFileName(path1); var otherFileInfo = fileSystem.FileInfo.FromFileName(path1); loadedFileInfo.Exists; // this forces a lazyload of the data. // Act fileSystem.AddFile(path1, new MockFileData("1")); // Assert Assert.IsTrue(fileInfo.Exists); Assert.IsFalse(loadedFileInfo.Exists); }
#1126 opened by MaxamadjonovD - 4
Multiple temp directories in MockFileSystem
#1125 opened by montoner0 - 4
Providing mocks as and when necessary
#1081 opened by sameera - 5
- 3
Allow selection of os dependent FS semantics
#1091 opened by markusschaber - 13
I want to step out of this project
#1080 opened by fgreinacher - 4
IDirectoryInfoFactory.Wrap loses part of absolute path when used with MockFileSystem
#1049 opened by koyote - 3
- 2
MockFileSystem: IFile.GetLastWriteTimeUtc may return wrong last write time after calling IFileInfo.Open
#1029 opened by jhinder - 1
Microsoft Fakes does not generate Fakes namespace for System.IO.Abstractions interfaces
#1073 opened by RoyRosenberg - 1
- 2
- 4
MockPath.GetFullPath does not match windows behavior.
#1044 opened by AnakinRaW - 8
IFile.Open(Read) cannot be mocked with NSubstitute anymore due to System.IO.Abstractions.FileSystemStream
#1009 opened by rklec - 4
Missing explanation of how to construct / inject FileSystem (and others) in runable code
#938 opened by ExtraZ - 3
Creation of the default "temp" directory in MockFileSystem should have a toggle
#983 opened by rcdailey - 3
- 8
Signature missing in the dll
#974 opened by nithyaRagupathy - 1
Async options for all actions
#1001 opened by KristofferStrube - 7
MockFileSystemWatcher
#854 opened by CallumECameron - 3
IFileSystemInfo.ResolveLinkTarget throws exception instead of returning null if the path is not a link
#981 opened by zivarah - 2
MockFileSystem.Directory.CreateDirectory should throw IOException if conflicting file exists
#968 opened by aaron-meyers - 2
FileInfoFactory and DirectoryInfoFactory Wrap implementations don't match the interface for nullability
#975 opened by mikeeheler - 2
- 4
`FileSystemStream` Issues
#943 opened by JasonBock - 1
Clearning the `Directory` flag causes a directory to be turned into a regular file
#957 opened by cryocz - 4
- 3
`FlushAsync` doesn't update file contents
#959 opened by cryocz - 2
Set Creation, LastAccess and LastWrite time for files
#872 opened by vbreuss - 5
IsReadOnly is true when file does not exist
#942 opened by brinkdinges - 3
IFileSystemWatcher dependency error
#937 opened by ascosmin09 - 2
Throws exception on call methods
#877 opened by szymonpiekny - 1
GetDrives on mac returns a DriveInfo.Name "/:\\" -- the colon and backslashes is not expected
#927 opened by mikeatdjp - 2
MockFileSystem.AddFilesFromEmbeddedNamespace() method throws ArgumentNullException
#921 opened by ristogod - 2
Missing overload in File.CreateText
#929 opened by Anton987 - 12
- 2
MockDirectory.EnumerateFiles search pattern behaves differently from Directory.EnumerateFiles in .NET 5+
#895 opened by Gav-Brown - 1
- 2
Support Async File Methods
#881 opened by vbreuss - 2
Move a readonly file results in inconsistent state
#870 opened by vbreuss - 5
Recursively delete a directory with readonly file results in inconsistent state
#849 opened by vbreuss - 2
- 8
- 2
- 2