Writing Unit Tests for Void Methods using xUnit, Moq and Dotnet Core CLI - Part One
When it comes to functionalities which are encapsulated in the form of methods, we have returning methods and void methods. While unit testing a returning method is a simpler deal; testing a void method which does some operation but doesn't return anything to indicate the calling component of its result is dealt in a different way.