C# Класс 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

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetTestCases ( int dimensions ) : List

Creates a set of test cases for specified dimensions.

Приватные методы

Метод Описание
IsTupleCovered ( this testCaseInfo, FeatureTuple tuple ) : bool

Описание методов

GetTestCases() публичный статический Метод

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. ///
Результат List