Provides a IClassDefsLoader that will load a class Definition based on reflection and heuristics.
Inheritance: IClassDefsLoader
Ejemplo n.º 1
0
        /// <summary>
        /// Clears the loaded class definitions and reloads them.  Usually this only needs
        /// to be done once per test fixture, except if there are individual tests that
        /// modify the class definitions.
        /// </summary>
        public static void RefreshClassDefs()
        {
            ClassDef.ClassDefs.Clear();
//            ClassDefCol classDefs = new XmlClassDefsLoader(BOBroker.GetClassDefsXml(), new DtdLoader()).LoadClassDefs();
            var assemblyTypeSource = new AssemblyTypeSource(typeof (Car));
            var loader = new ReflectionClassDefLoader(assemblyTypeSource);
            ClassDef.ClassDefs.Add(loader.LoadClassDefs());
        }