Пример #1
0
        public IList <DLTest> CreateDLTestsWithAttributeCount(DataSet ds, int i)
        {
            if (i != 1)
            {
                throw new ApplicationException("For now DLTests with only 1 attribute can be craeted , not" + i);
            }
            var nonTargetAttributes = ds.GetNonTargetAttributes();
            var tests = new List <DLTest>();

            foreach (var nta in nonTargetAttributes)
            {
                var ntaValues = ds.GetPossibleAttributeValues(nta);
                foreach (var ntaValue in ntaValues)
                {
                    var test = new DLTest();
                    test.Add(nta, ntaValue);
                    tests.Add(test);
                }
            }
            return(tests);
        }
Пример #2
0
 public void Add(DLTest test, string outcome)
 {
     tests.Add(test);
     testOutcomes[test] = outcome;
 }