static void Main(string[] args) { FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); typeanalysier test = new typeanalysier(); test.show_result(all_files); }
dep_table = dep_table + "\n "; foreach (var elem in item.Value) { dep_table = dep_table + "\n" + item.Key + " depends on " + elem; } dep_table = dep_table + " \n ===================="; } return dep_table; }
//----< Test Stub >-------------------------------------------------- #if (TEST_TypeTable) static void Main(string[] args) { FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); TestParser tp = new TestParser(); TypeTable tb = new TypeTable(); tb = tb.getTypeTable(all_files); tb.show(); }
static void Main(string[] args) { FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); CsGraph <string, string> test = new CsGraph <string, string>("test"); test.show_strong(all_files).show(); // test.show(); Console.WriteLine("\n\n"); Console.WriteLine("\n----------------------------------------end of test--------------------------------"); }
// This is a test method for testing the requirement 2 public void requirement2() { Console.WriteLine(); Console.WriteLine("This is the requirement 2 test"); Console.WriteLine("Requirement: Analysis and show any type defined by user"); Console.WriteLine("-----------------------------------------------------------------------"); FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); typeanalysier test = new typeanalysier(); test.show_result(all_files); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Conclusion: Meet the requirement 2 !!!!"); Console.WriteLine("-----------------------------------------------------------------------"); }
// This is a test method for testing the requirement 1 public void requirement1() { Console.WriteLine(); Console.WriteLine("This is the requirement 1 test"); Console.WriteLine("Requirement: List all .cs format files in the whole solution"); Console.WriteLine("-----------------------------------------------------------------------"); FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); foreach (var file in all_files) { Console.WriteLine(file); } Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Conclusion: Meet the requirement 1 !!!!!"); Console.WriteLine("-----------------------------------------------------------------------"); }
// This is a test method for testing the requirement 5 public void requirement5() { Console.WriteLine(); Console.WriteLine("This is the requirement 5 test"); Console.WriteLine("Requirement: Find the strong connected component between all files"); Console.WriteLine("-----------------------------------------------------------------------"); FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); CsGraph <string, string> test = new CsGraph <string, string>("test"); test.show_strong(all_files); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Conclusion: Meet the requirement 5 !!!!"); Console.WriteLine("-----------------------------------------------------------------------"); }
// This is a test method for testing the requirement 3 public void requirement3() { Console.WriteLine(); Console.WriteLine("This is the requirement 3 test"); Console.WriteLine("Requirement: Make the typetable in the collection of all files"); Console.WriteLine("-----------------------------------------------------------------------"); FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); TypeTable tb = new TypeTable(); tb = tb.getTypeTable(all_files); tb.show(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Conclusion: Meet the requirement 3 !!!!"); Console.WriteLine("-----------------------------------------------------------------------"); }
// This is a test method for testing the requirement 4 public void requirement4() { Console.WriteLine(); Console.WriteLine("This is the requirement 4 test"); Console.WriteLine("Requirement: Analysis the dependency between all files"); Console.WriteLine("-----------------------------------------------------------------------"); FileMg get_cs = new FileMg(); string[] all_files = get_cs.find_solu_all_cs(get_cs.get_solu_path()); DepAnalysis depana = new DepAnalysis(); depana.match(all_files); depana.show_gra_depent(); depana.show_rela_result(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Conclusion: Meet the requirement 4 !!!!"); Console.WriteLine("-----------------------------------------------------------------------"); }