public void BeforeTest() { TaskVm = new TaskVm(); DeleteTaskHandler = new DeleteTaskHandler(TaskVm); Collections = new Collections(); TaskVm.SelectedItem = new TaskEquipmentStation("SMPS", "HCAB"); }
public void TestDeleteTask() { TaskVm.SelectedItem.TaskId = 230; DeleteTaskHandler.DeleteTask(TaskVm.SelectedItem.TaskId); int myValue = 42; int realValue = Collections.LoadToDo().Count; Assert.AreEqual(myValue, realValue); }