An open API service indexing awesome lists of open source software.

https://github.com/hamedfathi/patchstatic

PatchStatic is a C# library that enables mocking of static methods and properties for unit testing purposes. It uses Harmony to patch static methods at runtime, providing thread-safe mocking with automatic cleanup through scoped mocking patterns.
https://github.com/hamedfathi/patchstatic

csharp csharp-library dotnet dotnet-core dotnetcore harmony mock moq nsubstitute nunit patch runtime static static-methods static-properties testing xunit

Last synced: 3 months ago
JSON representation

PatchStatic is a C# library that enables mocking of static methods and properties for unit testing purposes. It uses Harmony to patch static methods at runtime, providing thread-safe mocking with automatic cleanup through scoped mocking patterns.

Awesome Lists containing this project