Exemple #1
0
 public void SetUp()
 {
     _form          = new TasksForm();
     _task2         = new TaskControl(_form);
     _task          = new TaskControl(_form);
     _task.Message  = "What an amazing world";
     _task2.Message = "No way";
     _form.AddTask(_task);
     _form.AddTask(_task2);
 }
 public void Test_Add_Task_Changes_Count_To_One()
 {
     _task = new TaskControl(_form);
     _form.AddTask(_task);
     Assert.AreEqual(_form.Tasks.Count, 1);
 }