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
provides alternative test helpers and additional abstractions.
159
+
provides Roslyn analyzers to help use abstractions over static methods.
163
160
164
161
## Relationship with Testably.Abstractions
165
162
166
-
[`Testably.Abstractions`](https://github.com/Testably/Testably.Abstractions) is a complementary project that uses the same interfaces from [`TestableIO.System.IO.Abstractions`](https://www.nuget.org/packages/TestableIO.System.IO.Abstractions). This means **no changes to your production code are necessary** when switching between the testing libraries.
167
-
168
-
### Key Differences and Features
169
-
170
-
**Testably.Abstractions** offers more extensive testing helpers and features compared to this project:
171
-
172
-
-**Advanced time handling** with `ITimeSystem` interface
173
-
-**Random system abstractions** with `IRandomSystem` interface
174
-
-**Drive management** with support for multiple drives and limited size simulation
175
-
-**FileSystemWatcher** support for testing file system events
176
-
-**SafeFileHandle** support for advanced file operations
177
-
-**More comprehensive API** for complex testing scenarios
178
-
179
-
### Migration Guide
180
-
181
-
To switch from `TestableIO.System.IO.Abstractions.TestingHelpers` to `Testably.Abstractions.Testing`:
182
-
183
-
1.**In your test projects**: Replace the reference to [`TestableIO.System.IO.Abstractions.TestingHelpers`](https://www.nuget.org/packages/TestableIO.System.IO.Abstractions.TestingHelpers) with [`Testably.Abstractions.Testing`](https://www.nuget.org/packages/Testably.Abstractions.Testing)
184
-
2.**In your production code**: No changes needed! Both libraries use the same [`TestableIO.System.IO.Abstractions`](https://www.nuget.org/packages/TestableIO.System.IO.Abstractions) interfaces
185
-
3.**In your tests**: Use the `MockFileSystem` from `Testably.Abstractions.Testing` instead
163
+
[`Testably.Abstractions`](https://github.com/Testably/Testably.Abstractions) is a complementary project that uses the same interfaces as TestableIO. This means **no changes to your production code are necessary** when switching between the testing libraries.
164
+
165
+
### When to use Testably.Abstractions vs TestableIO
166
+
-**Use TestableIO.System.IO.Abstractions** if you need:
167
+
- Basic file system mocking capabilities
168
+
- Direct manipulation of stored file entities (MockFileData, MockDirectoryData)
169
+
- Established codebase with existing TestableIO integration
0 commit comments