Category: Unit tests

Object mocking in unit testing

If you haven't gone through my other posts about unit testing, then I would recommend you to please walk through these posts first: All about unit testing and Example of unit testing. What is Mock? If you will search in dictionary about mock, then you will find its meaning as below. An object under test may … Continue reading Object mocking in unit testing

Parameterized unit tests in MS test framework

Earlier, In MS test framework, we do not have any options to create Parameterized unit tests. So all we have to do is we have to write multiple unit test cases with same code. See below example which dictate this situation. Example: We have a string and we need to change its case from lower … Continue reading Parameterized unit tests in MS test framework