Which isolation method should you use?

Correct Answer for the following Question is given below

You are authoring unit tests.The unit tests must test code that consumes sealed classes.You need to create, maintain, and inject dependencies in the unit tests.Which isolation method should you use?http://msdn.microsoft.com/en-us/library/hh549176.aspxShim types are one of two technologies that the Microsoft Fakes Framework uses to let you easily isolate components under test from the environment.Shims divert calls to specific methods to code that you write as part of your test. Many methods return different results dependent on external conditions, but a shim is under the control of your test and can return consistent results at every call. This makes your tests much easier to write.

Question:

Which isolation method should you use?

Options:

T4 text templates and code generation

Stub types

Shim types

Hard-coded implementation

Correct Answer

The Correct Answer for this Question is

Shim types

Explanation

The Question – Which isolation method should you use? has been answered correctly and answers for the question is Shim types

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

Leave a Comment