nerdexam
Microsoft

70-498 · 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.

Implement software quality metrics

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

(60 responses)
  • A
    5% (3)
  • B
    2% (1)
  • C
    12% (7)
  • D
    82% (49)

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-refactor

Community Discussion

No community discussion yet for this question.

Full 70-498 Practice