Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.51 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.51 KB

Examples

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 the MockFileSystem.

  • 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 mocked FileSystemWatcher.

  • SafeFileHandle
    This example illustrates how to work with SafeFileHandle in the MockFileSystem.

  • Thread-aware time provider
    The default implementation of the ITimeProvider uses a DateTime property to simulate the current time, that is advanced with every Thread.Sleep or Task.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 the IFileSystem to compress and uncompress directories using System.IO.Compression.