PrepAway - Latest Free Exam Questions & Answers

Which three test scenarios should you recommend?

You are an enterprise application developer. You are designing unit tests for a Customer class. The Customer class contains properties to get or set data in private fields. The Customer class also contains one default constructor and one non-default constructor. The non-default constructor accepts a Customer ID argument. When the non-default constructor is used to instantiate the Customer object, a public method named Load is invoked along with the Customer ID argument. The Customer object properties are then loaded by using values from the database. You need to design unit tests that will test the class properties. Which three test scenarios should you recommend? (Each correct answer presents part of the solution. Choose three.)

PrepAway - Latest Free Exam Questions & Answers

A.
Use the non-default constructor. Examine whether the properties return the correct values from
the database.

B.
Use the default constructor. Examine whether the properties return the correct values from the database.

C.
Use the non-default constructor and examine whether the properties are empty.

D.
Use the default constructor along with the Load method. Examine whether the properties return the correct values from the database.

E.
Use the default constructor. Examine whether the properties of the default constructor are equal to those of a second instance of the Customer class instantiated by using the non- default constructor.

F.
Use the default constructor. Assign values to the properties of the object. Examine whether the properties return values assigned to them.


Leave a Reply