public void TestMethod2() { string path = @"C:\TestingFiles\RandoopTestingStation"; string currentpath = System.IO.Directory.GetCurrentDirectory(); string rootpath = currentpath.Substring(0, currentpath.IndexOf("Randoop plugin src-2010")); string path0 = string.Concat(rootpath, "Randoop plugin src-2010\\Randoop\\RandoopAddinTesting\\TestingFiles\\RandoopTestingStation-org"); if(Directory.Exists(path)) Directory.Delete(path, true); CopyDir.Copy(path0, path); toMSTest obj = new toMSTest(); obj.Convert(path, 500); List<string> result = FileHelper.GetFilesRecursive(path); Assert.IsTrue(result.Contains("C:\\TestingFiles\\RandoopTestingStation\\RandoopTest.cs")); }
private void doWorkLeft() { //convert all test files to one RandoopTest.cs progressText2.Text = "Converting and adding test cases to project ... "; if (en_reducer > 0) { doReduceWork(out_dir, en_reducer); } if (en_minimizer) { doMinimizeWork(out_dir); } toMSTest objToMsTest = new toMSTest(); if (en_output_plan) { objToMsTest.Convert_out_plan(out_dir, nTestPfile); } else { objToMsTest.Convert(out_dir, nTestPfile); } //int j = Convert.ToInt32(Convert.ToDouble(totalTime + 1) / Convert.ToDouble(totalTime + 5) * Convert.ToDouble(100)); ////backgroundWorkerProgress.ReportProgress(j); //progressText.Text = j.ToString() + "%"; //TODO: add/include RandoopTest.cs in a/the Test Project (p3) //TODO: add progress to WorkLeft (p3) //CreateTestPrj(out_dir, dllTest); ////backgroundWorkerProgress.ReportProgress(100); //progressText.Text = "100%"; }
private void doWorkLeft() { //convert all test files to one RandoopTest.cs progressText2.Text = "Converting and adding test cases to project ... "; if (en_reducer > 0) doReduceWork(out_dir, en_reducer); if (en_minimizer) doMinimizeWork(out_dir); toMSTest objToMsTest = new toMSTest(); if (en_output_plan) objToMsTest.Convert_out_plan(out_dir, nTestPfile); else objToMsTest.Convert(out_dir, nTestPfile); //int j = Convert.ToInt32(Convert.ToDouble(totalTime + 1) / Convert.ToDouble(totalTime + 5) * Convert.ToDouble(100)); ////backgroundWorkerProgress.ReportProgress(j); //progressText.Text = j.ToString() + "%"; //TODO: add/include RandoopTest.cs in a/the Test Project (p3) //TODO: add progress to WorkLeft (p3) //CreateTestPrj(out_dir, dllTest); ////backgroundWorkerProgress.ReportProgress(100); //progressText.Text = "100%"; }