Microsoft
70-499 · Question #88
You are the lead software developer for your company. You are using Microsoft Visual Studio 2012 and Test Driven Development to create a new commercial software product. Management asks you to…
The correct answer is D. fail the base case. You create the first test to fail the base case. Then based on the results of the failure, you implement the code to achieve a pass.
Manage software quality
Question
You are the lead software developer for your company. You are using Microsoft Visual Studio 2012 and Test Driven Development to create a new commercial software product. Management asks you to define unit testing standards that all developers will follow. You need to design the first unit test for a new class. What should you design the first unit test to do initially?
Options
- Atest a range of values
- Btest exceptional cases
- Cpass the base case
- Dfail the base case
How the community answered
(32 responses)- A6% (2)
- B13% (4)
- C3% (1)
- D78% (25)
Explanation
You create the first test to fail the base case. Then based on the results of the failure, you implement the code to achieve a pass.
Topics
#TDD#unit testing#test-first development#red-green cycle
Community Discussion
No community discussion yet for this question.