private void button1_Click(object sender, EventArgs e) { ExcelParser excelFileParser = new ExcelParser(VTPLocationText.Text); excelFileParser.Parse(); VbProjParser vbProjectParser = new VbProjParser( Path.GetDirectoryName(VBProjLocationText.Text), Path.GetFileName(VBProjLocationText.Text)); vbProjectParser.Parse(); List<TestMerge> MainTestCase = new List<TestMerge>(); mergeRes= new MergeResult(vbProjectParser,excelFileParser); SuccessButton.Enabled = true; VBTestButton.Enabled = true; ExcelButton.Enabled = true; MissmatchButton.Enabled = true; }
public static List<TestCaseRepresentation> Adapt(MergeResult mr, resultType rt) { List<TestCaseRepresentation> result = new List<TestCaseRepresentation>(); List<TestCase> testCases; switch (rt) { case resultType.Excel: testCases = mr.UnmacthedExcel; break; default: testCases = mr.UnmacthedVB; break; } foreach (var merRes in testCases) { result.Add(new TestCaseRepresentation() { TestName = merRes.ToString() }); } return result; }