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

A test case group in the run page.
Inheritance: INotifyPropertyChanged
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CheckAllSubItems() public méthode

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

HoldUpdatingHeader() public static méthode

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
Résultat void

RemoveTestCase() public méthode

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

ResumeUpdatingHeader() public static méthode

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

TestCaseGroup() public méthode

The constuctor of TestCaseGroup.
public TestCaseGroup ( string name, int totalCasesCnt ) : System
name string
totalCasesCnt int
Résultat System

UpdateHeader() public méthode

Updates the header.
public UpdateHeader ( ) : void
Résultat void