Пример #1
1
 public void button1_ClickTest()
 {
     Form1_Accessor target = new Form1_Accessor(); // TODO: 初始化为适当的值
     object sender = null; // TODO: 初始化为适当的值
     EventArgs e = null; // TODO: 初始化为适当的值
     target.button1_Click(sender, e);
     Assert.Inconclusive("无法验证不返回值的方法。");
 }
Пример #2
0
 public void button1_ClickTest()
 {
     Form1_Accessor target = new Form1_Accessor(); // TODO: Initialize to an appropriate value
     object sender = null; // TODO: Initialize to an appropriate value
     EventArgs e = null; // TODO: Initialize to an appropriate value
     target.button1_Click(sender, e);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Пример #3
0
        public void button1_ClickTest()
        {
            Form1_Accessor target = new Form1_Accessor(); // TODO: Initialize to an appropriate value
            object         sender = null;                 // TODO: Initialize to an appropriate value
            EventArgs      e      = null;                 // TODO: Initialize to an appropriate value

            target.button1_Click(sender, e);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Пример #4
0
        public void button1_ClickTest()
        {
            Form1_Accessor target = new Form1_Accessor(); // TODO: 初始化为适当的值
            object         sender = null;                 // TODO: 初始化为适当的值
            EventArgs      e      = null;                 // TODO: 初始化为适当的值

            target.button1_Click(sender, e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }
Пример #5
0
 public void button1_ClickTest()
 {
     Form1_Accessor target = new Form1_Accessor(); // TODO: Initialize to an appropriate value
     object sender = target.button1; // TODO: Initialize to an appropriate value
     EventArgs e = new EventArgs();  // TODO: Initialize to an appropriate value
     target.textBox1.Text = "20";
     target.textBox2.Text = "10";
     try
     {
         target.button1_Click(sender, e);
         Assert.IsTrue(true);
     }
     catch(Form1.NotIntegerException fr)
     {
         System.Windows.Forms.MessageBox.Show(fr.Message);
         Assert.IsTrue(false);
     }
 }