Пример #1
0
        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);
        }
Пример #2
0
 /// <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);
 }
Пример #3
0
 public long CalculateNumberOfUniqueCoveredTestCases()
 {
     DecisionTableCreator.TestCases.ExpandTestCases expand = new ExpandTestCases();
     return(expand.Expand(this).Count);
 }