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 withSafeFileHandlein theMockFileSystem. -
Thread-aware time provider
The default implementation of theITimeProvideruses aDateTimeproperty to simulate the current time, that is advanced with everyThread.SleeporTask.Delaycall. 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. -
Unix file mode
This example highlights how to simulate working with theUnixFileModein theMockFileSystem. -
Zip-File
This example highlights how to use theIFileSystemto compress and uncompress directories usingSystem.IO.Compression.