PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the testing and stabilization of applications. Domain.com operates in the international retail environment. Domain.com works in joint ventures with courier companies world-wide due to the nature of the business. These courier companies are responsible for the delivery of the order. A method named Ship is implemented to invoke a Web method of an Extensible Markup Language (XML) Web service at these courier companies. You are currently developing an order fulfillment solution for Domain.com. In this solution, the Domain.com customer’s order is represented by the Order class. The Order class in turn has a Web method named Ship. The Ship method is designed as follows:
1. It accepts a DateTime instance that represents the earliest date that an order should be shipped.
2. It throws an exception if it is passed a data that is earlier than the current date.
3. It allows multiple threads to call it at the same time.
4. It invokes the Web method of the Web service asynchronously.

You are required to unit test and conclude that the previous design aspects are implemented correctly. To this end you need to perform an additional unit test so as to ensure that the Ship method will be functional under all production scenarios.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
You should perform the Performance unit test.

B.
You should perform the Expected Exception unit test.

C.
You should perform the Concurrency unit test.

D.
You should perform the Boundary Condition unit test.

Explanation:
A Boundary Condition test will allow you to evaluate whether the code responds in the proper fashion when out-of-bounds input values are entered. This will allow you to ensure that code fails gracefully if out-of-bounds input values are used at run time.
Incorrect answers:
A: A Performance test will allow you to measure the speed at which the method executes. Nothing in this question suggests the need to a performance test.
B: An Expected Exception test has already been run in this scenario to ensure that an exception is thrown when a date earlier than the current date is passed to the Ship method.
C: A Concurrency test is the type of test that has already been performed to ensure that multiple threads can call the method at the same time. This is not the appropriate solution since this test has been run already in this scenario.


Leave a Reply