C# Class Xunit.PairwiseStrategy

PairwiseStrategy creates test cases by combining the parameter data so that all possible pairs of data items are used.

The number of test cases that cover all possible pairs of test function parameters values is significantly less than the number of test cases that cover all possible combination of test function parameters values. And because different studies show that most of software failures are caused by combination of no more than two parameters, pairwise testing can be an effective ways to test the system when it's impossible to test all combinations of parameters.

The PairwiseStrategy code is based on "jenny" tool by Bob Jenkins: http://burtleburtle.net/bob/math/jenny.html

Afficher le fichier Open project: AArnott/Xunit.Combinatorial Class Usage Examples

Méthodes publiques

Méthode Description
GetTestCases ( int dimensions ) : List

Creates a set of test cases for specified dimensions.

Private Methods

Méthode Description
IsTupleCovered ( this testCaseInfo, FeatureTuple tuple ) : bool

Method Details

GetTestCases() public static méthode

Creates a set of test cases for specified dimensions.
public static GetTestCases ( int dimensions ) : List
dimensions int /// An array which contains information about dimensions. Each element of /// this array represents a number of features in the specific dimension. ///
Résultat List