Want to receive every Tuesday the best .NET links?
Once subscribed you can login, submit a link and receive the weekly newsletter.
by ThomasArdal, 2020-02-04T07:09:29.808Z
Get all the details about how to convert a string to int with C#. Learn how to handle exceptions and all of the worst practices that everyone is doing.by anthonygiretti, 2020-02-05T05:32:06.172Z
You must have been like me for a long time unable to do one thing with ILogger: test the arguments that are passed to its methods during your unit tests. You must most likely use extension methods such as LogDebug, logError etc …… and indeed you can neither mock nor test the arguments passed to them. We will see in this article how to get around this difficulty in order to finally be able to test arguments passed to extension methods of ILogger.