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)); }
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(); }