单项选择题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You plan to implement a test strategy for the application.
You need to ensure that the test strategy meets the following requirements:
Test data can be added to the test project without recompiling.
Multiple variations of a test can be executed at run time.
What should you do? ()
A. Use IntelliTrace.
B. Use data-driven tests.
C. Create a single test class.
D. Create a test method for each data variation.
相关考题
-
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a property named ServiceContext to a control. You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class. What should you do? ()
A. Inherit the control class from the DependencyObject class.
B. Register a dependency property. In the options settings of the property metadata, specify the Inherits option.
C. Declare a new property. In the get and set methods of the new property, create an instance of the TraversalRequest class.
D. Declare a new property. In the get method of the new property call VisualTreeHelper.GetParent. In the set method of the new property, call VisualTreeHelper.GetChild. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a custom control named Wheel. You need to ensure that the Speed property of Wheel can be animated. What should you do?()
A. Inherit the DependencyObject class.
B. Declare the Speed property as a dependency property.
C. Declare an animation of the Speed property from within the code-behind file.
D. Implement the System.Windows.Media.Animation.IAnimatable interface with the Wheel class. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows application that can execute on client computers that run Windows Vista. You are creating a User Account Control (UAC) application manifest for the application. You need to ensure that users who are members of the local Administrators group do not receive a UAC prompt when the application executes. Which code fragment should you use? ()
A.
B.
C.
D.
