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

Mostra file Open project: AArnott/Xunit.Combinatorial Class Usage Examples

Public Methods

Method Description
GetTestCases ( int dimensions ) : List

Creates a set of test cases for specified dimensions.

Private Methods

Method Description
IsTupleCovered ( this testCaseInfo, FeatureTuple tuple ) : bool

Method Details

GetTestCases() public static method

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. ///
return List