Effective mocking

30 lip 2019 | Blog | testy | unit tests | IT
Recently, I’ve been asked if Roslyn can be used for helping with writing code that involves preparing mocks with NSubstitute. Of course, my answer was "Yes" but instead of rushing into creating a new project that would implement this functionality, I performed a small research. I checked nuget.org and Visual Studio extensions marketplace, and I discovered that there was a bunch of existing analyzers and extensions that facilitated working with mocks and not only for NSubstitute but for other mocking frameworks, just like Moq or Fake It Easy, too.

POSTY TEGO AUTORA

Visualizing Test Execution with OpenTelemetry4 maj 2025

Blog | programowanie | .net | c# | IT

Structuring Test Projects for Maintainability1 maj 2025

Blog | programowanie | testowanie | software design | IT

How to Run a React Development Server with HTTPS4 sty 2025

Blog | programowanie | .net | react | IT

Mocking authorization tokens with WireMock.NET28 lut 2024

Blog | programowanie | .net | c# | IT

C# code snippets for Resharper and Rider9 lut 2024

Blog | programowanie | .net | c# | IT

Cezary Piątek Blog

Cezary Piątek