Which component members should you test?

You create Microsoft Windows-based applications. Two of your Windows-based applications require the use of graphical progress indicators. These indicators are based on bitmap files. Such a component is not available in the .NET Framework.

To facilitate the search for a component, you identify the following requirements:

Component exposes a property to set a bitmap file that is used for the progress bar. Component permits the use of at least two types of progress bars. These progress bars are named percent progress and numeric progress.
Component exposes a method to increment the progress bar.

You find a component that fulfills all the requirements. You create a new component that extends the original component and overrides the Increment method. The Windows-based applications might use either the original component or the extended component. You write a test project to test the component. You need to ensure that all the requirements are met. You want to achieve this goal by using the minimum amount of programming effort. Which component members should you test?

You create Microsoft Windows-based applications. Two of your Windows-based applications require the use of graphical progress indicators. These indicators are based on bitmap files. Such a component is not available in the .NET Framework.

To facilitate the search for a component, you identify the following requirements:

Component exposes a property to set a bitmap file that is used for the progress bar. Component permits the use of at least two types of progress bars. These progress bars are named percent progress and numeric progress.
Component exposes a method to increment the progress bar.

You find a component that fulfills all the requirements. You create a new component that extends the original component and overrides the Increment method. The Windows-based applications might use either the original component or the extended component. You write a test project to test the component. You need to ensure that all the requirements are met. You want to achieve this goal by using the minimum amount of programming effort. Which component members should you test?

A.
Bitmap and Progress Bar Type properties, the Increment method for the original component

B.
Bitmap and Progress Bar Type properties, the Increment method for the original component, and the Increment method for the extended component

C.
All properties and methods for the original component

D.
All properties and methods for the original component and the extended component



Leave a Reply 0

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