/// <summary> /// Creates a set of test cases for specified dimensions. /// </summary> /// <param name="dimensions"> /// An array which contains information about dimensions. Each element of /// this array represents a number of features in the specific dimension. /// </param> /// <returns> /// A set of test cases. /// </returns> public IEnumerable GetTestCases(int[] dimensions) { _prng = new FleaRand(15485863); _dimensions = dimensions; CreateAllTuples(); List <TestCaseInfo> testCases = new List <TestCaseInfo>(); while (true) { FeatureTuple tuple = GetNextTuple(); if (tuple == null) { break; } TestCaseInfo testCase = CreateTestCase(tuple); RemoveTuplesCoveredByTest(testCase); testCases.Add(testCase); } #if DEBUG SelfTest(testCases); #endif return(testCases); }
/// <summary> /// Creates a set of test cases for specified dimensions. /// </summary> /// <param name="dimensions"> /// An array which contains information about dimensions. Each element of /// this array represents a number of features in the specific dimension. /// </param> /// <returns> /// A set of test cases. /// </returns> public List <TestCaseInfo> GetTestCases(int[] dimensions) { this.prng = new FleaRand(15485863); this.dimensions = dimensions; this.CreateAllTuples(); List <TestCaseInfo> testCases = new List <TestCaseInfo>(); while (true) { FeatureTuple tuple = this.GetNextTuple(); if (tuple == null) { break; } TestCaseInfo testCase = this.CreateTestCase(tuple); this.RemoveTuplesCoveredByTest(testCase); testCases.Add(testCase); } return(testCases); }
/// <summary> /// Creates a set of test cases for specified dimensions. /// </summary> /// <param name="dimensions"> /// An array which contains information about dimensions. Each element of /// this array represents a number of features in the specific dimension. /// </param> /// <returns> /// A set of test cases. /// </returns> public List<TestCaseInfo> GetTestCases(int[] dimensions) { this.prng = new FleaRand(15485863); this.dimensions = dimensions; this.CreateAllTuples(); List<TestCaseInfo> testCases = new List<TestCaseInfo>(); while (true) { FeatureTuple tuple = this.GetNextTuple(); if (tuple == null) { break; } TestCaseInfo testCase = this.CreateTestCase(tuple); this.RemoveTuplesCoveredByTest(testCase); testCases.Add(testCase); } return testCases; }
/// <summary> /// Creates a set of test cases for specified dimensions. /// </summary> /// <param name="dimensions"> /// An array which contains information about dimensions. Each element of /// this array represents a number of features in the specific dimension. /// </param> /// <returns> /// A set of test cases. /// </returns> public IEnumerable GetTestCases( int[] dimensions ) { _prng = new FleaRand( 15485863 ); _dimensions = dimensions; CreateAllTuples(); List<TestCaseInfo> testCases = new List<TestCaseInfo>(); while ( true ) { FeatureTuple tuple = GetNextTuple(); if ( tuple == null ) { break; } TestCaseInfo testCase = CreateTestCase( tuple ); RemoveTuplesCoveredByTest( testCase ); testCases.Add( testCase ); } #if DEBUG SelfTest( testCases ); #endif return testCases; }