Microsoft
70-498 · Question #78
70-498 Question #78: Real Exam Question with Answer & Explanation
The correct answer is D. Ensure that each class has only one responsibility.. See the full explanation below for the reasoning.
Question
You are planning to develop a new application. You need to ensure that the code is easy to test and obtain high code coverage. What should you do?
Options
- ACreate as many static methods as possible.
- BCreate a fake for each class that you are testing.
- CEnsure that concrete classes depend only on other concrete classes.
- DEnsure that each class has only one responsibility.
Community Discussion
No community discussion yet for this question.