Before we start to see, how a private method can be unit tested using the MS Test? Let us discuss whether it is a good idea to test a private method or not? Often I have seen there are two school of thoughts,
1. Private methods should be tested.
2. Private methods should not be tested.
To put these things in perspective, let us consider a system under test (SUT) Salary class as shown in the listing below.
names…