Example #1
0
 public IEnumerable <SpecificationToRun> GetSpecifications()
 {
     return(from asm in assemblies
            from type in asm.GetTypes()
            from spec in TypeReader.GetSpecificationsIn(type)
            where spec != null
            select spec);
 }
        protected TestCaseData[] GetSpecifications()
        {
            var type = GetType();
            var runs = TypeReader.GetSpecificationsIn(type);

            return(runs
                   .Select(s => new TestCaseData(s).SetName(Name(s)))
                   .ToArray());
        }