public ICollection<ITestClass> GetTestClasses() {
     ICollection<Type> classes = ReflectionUtility.GetTypesWithAttribute(this.assembly, typeof(TestFixtureAttribute));
     List<ITestClass> list = new List<ITestClass>();
     foreach(Type type in classes) {
         ITestClass testClass = new BaseTestClass(this, type);
         if(!testClass.Ignore)
             list.Add(testClass);
     }
     return list;
 }
Beispiel #2
0
        public ICollection <ITestClass> GetTestClasses()
        {
            ICollection <Type> classes = ReflectionUtility.GetTypesWithAttribute(this.assembly, typeof(TestFixtureAttribute));
            List <ITestClass>  list    = new List <ITestClass>();

            foreach (Type type in classes)
            {
                ITestClass testClass = new BaseTestClass(this, type);
                if (!testClass.Ignore)
                {
                    list.Add(testClass);
                }
            }
            return(list);
        }