Microsoft fakes are quite useful when we want to quickly set up the framework for testing of basic dependency interactions. In case of complex in depth testing a third party mock frameworks are more suitable. Create the fakes assembly by right-clicking System in the Unit Test Project’s References and select “Add Fakes Assembly”. *The fakes … Continue reading Testing – Microsoft Fakes
Code coverage: verification metric(formula) of determining how many line of code in a given binary(DLL) are measured when run test cases against it. Can figure out how many how much code has been tested for the specified test method. Can judge how well the code/function is tested. Do not tell how well code is written. … Continue reading Fundamentals of Code coverage.
Mocking in unit testing is one of the very important concept. To understand the basics we must know the answer of below questions.What is Mocking or Mock Object and then why to use this?Mock Objects are simulated objects that mimic the behaviour of real objects in controlled ways. A programmer typically creates a mock object to … Continue reading Mock Object in Unit Testing