Exemplo n.º 1
0
        public UtItem GetTree()
        {
            var solution     = "ReflectionDemo";
            var assemblyList = new List <string>
            {
                @"C:\Users\sxu\source\repos\CalculatorDemo\CalculatorDemoTests\bin\Debug\CalculatorDemoTests.dll",
            };

            return(AssemblyWalker.BuildTree(solution, assemblyList));
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            AddTests add = new AddTests();
            Type     t   = typeof(AddTests);

            Console.WriteLine("list all classes and methods that has attribute setup");

            var solution     = "ReflectionDemo";
            var assemblyList = new List <string>
            {
                @"C:\Users\sxu\source\repos\CalculatorDemo\CalculatorDemoTests\bin\Debug\CalculatorDemoTests.dll",
            };

            var treeRoot = AssemblyWalker.BuildTree(solution, assemblyList);

            Console.ReadKey();
        }