测试类

 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 using System.Threading.Tasks;
 6 using System.Windows.Forms;
 7 
 8 namespace WindowsFormsApplication2
 9 {
10     /// <summary>
11     /// 测试类
12     /// </summary>
13    public class TestJob:Abctract
14     {
15        public TestJob(string type ,string name, string desc):base(type,name,desc) 
16        {
17       
18        
19        }
20        //public TestJob() { }
21        public int CaseNum { get; set; }
22        public int Findbugs { get; set; }
23        public int WorKDay { get; set; }
24        public override void Execcute(Form1 f, int index)
25        {
26            Form2 q = new Form2();
27            q.f = f;
28            q.index = index;
29            q.ShowDialog();
30        }
31        public override void show()
32        {
33            StringBuilder s = new StringBuilder();
34            s.AppendLine("测试用例个数:" + this.CaseNum);
35            s.AppendLine("发现Bug数量:" + this.Findbugs);
36            s.AppendLine("工作日:" + this.WorKDay);
37            MessageBox.Show(s.ToString());
38        }
39     }
40 }
View Code
原文地址:https://www.cnblogs.com/nancheng/p/6701704.html