What should you do?

You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application contains data access code that connects to either Microsoft SQL Server 2005 or Microsoft SQL Server 2008.
When the application is connected to SQL Server 2008, it uses the enhanced functionality available only in SQL Server 2008.
You plan to develop a functional testing strategy for the application. You need to ensure that the functional testing strategy meets the following requirements:
– Unit tests are executed properly when connected to either version of SQL Server.
– Unit testing code is reused to the maximum extent possible.
What should you do?

You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application contains data access code that connects to either Microsoft SQL Server 2005 or Microsoft SQL Server 2008.
When the application is connected to SQL Server 2008, it uses the enhanced functionality available only in SQL Server 2008.
You plan to develop a functional testing strategy for the application. You need to ensure that the functional testing strategy meets the following requirements:
– Unit tests are executed properly when connected to either version of SQL Server.
– Unit testing code is reused to the maximum extent possible.
What should you do?

A.
Create a unit test class for SQL Server 2005.
Create a unit test class for SQL Server 2008.Implement the appropriate methods in each class.

B.
Create a unit test class for SQL Server 2008.
Write a code that ignores the enhanced functionality when connected to SQL Server 2005.
Add the code to the unit test class.

C.
Create an interface that contains all unit test definitions.
Create a unit test class for SQL Server 2005 that implements the interface.
Create a unit test class for SQL Server 2008 that implements the interface.
Implement the appropriate methods in each class.

D.
Create an abstract class that contains all unit tests.
Create a derived class for SQL Server 2005 unit tests.
Create a derived class for SQL Server 2008 unit tests.
Override methods that are specific to SQL Server 2008 in the SQL Server 2008 test class.



Leave a Reply 0

Your email address will not be published. Required fields are marked *