public bool CalculateMissingTestCases() { var possibleCombinations = CalculatePossibleCombinations(); if (possibleCombinations < MaxPossibleCombinations) { ExpandTestCases expand = new ExpandTestCases(); List <TestCase> existingTestCases = expand.Expand(this); TestCaseCreator creator = new TestCaseCreator(); creator.CreateMissingTestCases(this); List <TestCase> missingTestCases = creator.FilterForMissingTestCases(existingTestCases); AddMissingTestCases(missingTestCases); return(true); } return(false); }
/// <summary> /// calculate the num ber of covered test cases /// DontCare counts with the count of valid enum values /// Invalid do not count /// </summary> /// <param name="conditions"></param> /// <param name="testCases"></param> /// <returns></returns> public static long CalculateNumberOfUniqueCoveredTestCases(ObservableCollection <ConditionObject> conditions, IList <TestCase> testCases) { DecisionTableCreator.TestCases.ExpandTestCases expand = new ExpandTestCases(); return(expand.Expand(conditions, testCases).Count); }
public long CalculateNumberOfUniqueCoveredTestCases() { DecisionTableCreator.TestCases.ExpandTestCases expand = new ExpandTestCases(); return(expand.Expand(this).Count); }