Пример #1
0
 public void BeforeTest()
 {
     TaskVm              = new TaskVm();
     DeleteTaskHandler   = new DeleteTaskHandler(TaskVm);
     Collections         = new Collections();
     TaskVm.SelectedItem = new TaskEquipmentStation("SMPS", "HCAB");
 }
Пример #2
0
        public void TestDeleteTask()
        {
            TaskVm.SelectedItem.TaskId = 230;
            DeleteTaskHandler.DeleteTask(TaskVm.SelectedItem.TaskId);
            int myValue   = 42;
            int realValue = Collections.LoadToDo().Count;

            Assert.AreEqual(myValue, realValue);
        }