This is an overview of the provided examples for "Testably.Abstractions".
-
Access Control Lists (ACL)
This example illustrates how to work with access control lists in theMockFileSystem
. -
Configuration
This example illustrates how the testing libraries can be configured in unit tests. -
Drive Management
This example illustrates how to define multiple drives and use space management on individual drives. -
File-System Watcher
This example illustrates how to use the mockedFileSystemWatcher
. -
SafeFileHandle
This example illustrates how to work withSafeFileHandle
in theMockFileSystem
. -
Thread-aware time provider
The default implementation of theITimeProvider
uses aDateTime
property to simulate the current time, that is advanced with everyThread.Sleep
orTask.Delay
call. In a scenario with multiple threads running in parallel, these would each influence each other differently in the mocked instance than "in the real world".
This example illustrates how to implement a thread-aware time provider for such a scenario. -
Zip-File
This example highlights how to use theIFileSystem
to compress and uncompress directories usingSystem.IO.Compression
.