Generally, when we are dealing with unit tests and static methods, we usually have to resort to various tricks in order to mock out the static dependency. The downside to this is that for the sake of unit testing some…
Generally, when we are dealing with unit tests and static methods, we usually have to resort to various tricks in order to mock out the static dependency. The downside to this is that for the sake of unit testing some…
The main purpose of SemanticComparison is that it allows for the easy comparison of objects. There are other ways to do this comparison but today it helped me in not having to pollute my production code. Consider the following code:…
If you have been trying to follow the tutorial on Outside in TDD by Mark Seemann but don’t have access to the source code, then you will have probably come across certain issues. Here I will detail what I did…