C# Class Microsoft.Protocols.TestManager.Kernel.TestCaseGroup

A test case group in the run page.
Inheritance: INotifyPropertyChanged
显示文件 Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Methods

Method Description
AddTestCase ( TestCase testcase ) : void

Add a test case to the group.

CheckAllSubItems ( bool isChecked ) : void

Checks all the sub items.

HoldUpdatingHeader ( ) : void

Holds updating the header in the test case list. Updating the header is a high-cost operation. If changing the status of a large number of test cases, hold it to improve the performance.

RemoveTestCase ( TestCase testcase ) : void

Remove the test case from the group.

ResumeUpdatingHeader ( ) : void

Resumes updating the header int the test case list.

TestCaseGroup ( string name, int totalCasesCnt ) : System

The constuctor of TestCaseGroup.

UpdateHeader ( ) : void

Updates the header.

Private Methods

Method Description
ChangeRunningCaseToTop ( TestCase runningTestCase ) : void

Update running case to be the first case in a group.

OnPropertyChanged ( string name ) : void
TestcasePropertyChanged ( object sender, PropertyChangedEventArgs args ) : void

Method Details

AddTestCase() public method

Add a test case to the group.
public AddTestCase ( TestCase testcase ) : void
testcase TestCase The test case.
return void

CheckAllSubItems() public method

Checks all the sub items.
public CheckAllSubItems ( bool isChecked ) : void
isChecked bool Flags to indicate a case should be checked or not
return void

HoldUpdatingHeader() public static method

Holds updating the header in the test case list. Updating the header is a high-cost operation. If changing the status of a large number of test cases, hold it to improve the performance.
public static HoldUpdatingHeader ( ) : void
return void

RemoveTestCase() public method

Remove the test case from the group.
public RemoveTestCase ( TestCase testcase ) : void
testcase TestCase The test case.
return void

ResumeUpdatingHeader() public static method

Resumes updating the header int the test case list.
public static ResumeUpdatingHeader ( ) : void
return void

TestCaseGroup() public method

The constuctor of TestCaseGroup.
public TestCaseGroup ( string name, int totalCasesCnt ) : System
name string
totalCasesCnt int
return System

UpdateHeader() public method

Updates the header.
public UpdateHeader ( ) : void
return void