public void RemoveAllExecutorsTestRemovingMultiple() { Maintenance maintenance = new Maintenance(); m_managerStorage.AddExecutor(new ExecutorStorageView(true, true, DateTime.Now, "hostname", 123, "username", 0, 0, 0, 0)); m_managerStorage.AddExecutor(new ExecutorStorageView(true, false, DateTime.Now, "hostname", 4543, "username", 1, 2, 3, 4)); m_managerStorage.AddExecutor(new ExecutorStorageView(false, true, DateTime.Now, "hostname", 1, "username", 0, 0, 7, 0)); m_managerStorage.AddExecutor(new ExecutorStorageView(false, false, DateTime.Now, "hostname", 33, "username", 0, 4, 0, 0)); Assert.AreEqual(4, m_managerStorage.GetExecutors().Length); maintenance.RemoveAllExecutors(m_managerStorage); Assert.AreEqual(0, m_managerStorage.GetExecutors().Length); }
public void RemoveAllExecutorsTestNothingToRemove() { Maintenance maintenance = new Maintenance(); Assert.AreEqual(0, m_managerStorage.GetExecutors().Length); maintenance.RemoveAllExecutors(m_managerStorage); Assert.AreEqual(0, m_managerStorage.GetExecutors().Length); }