Exemplo n.º 1
0
 private void BTNCal_Click(object sender, EventArgs e)
 {
     if (!mc.IsFileSelectionEmpty())
     {
         mc.showResult();
     }
 }
        public void IsFileSelectionEmpty_Test2()
        {
            var mainForm = new MainForm();

            mainForm.TBPath.Text = "sth";
            var mc = new MainformController(mainForm);

            Assert.AreEqual(false, mc.IsFileSelectionEmpty());
        }
        public void IsFileSelectionEmpty_Test()
        {
            var mc = new MainformController(new MainForm());

            Assert.IsTrue(mc.IsFileSelectionEmpty());
        }