public void ProcessesTest()
        {
            var target = new ProcessCoordinator();

            var process1 = MockRepository.GenerateStub<IProcess>();
            var process2 = MockRepository.GenerateStub<IProcess>();

            Assert.IsNotNull(target.Processes);

            target.Processes.AddRange(new List<IProcess> { process1, process2 });
            // check the count
            Assert.AreEqual(2, target.Processes.Count);
            // check the order, order can be important for the sync scenarios
            // basicaly it is a bad smell if it is, but we better keep the contract here
            Assert.AreEqual(target.Processes[0], process1);
            Assert.AreEqual(target.Processes[1], process2);
        }
 public void TotalRegularStopTimeoutTest()
 {
     ProcessCoordinator target = new ProcessCoordinator();
     // test the default value is being set first
     Assert.AreEqual(20000, target.TotalRegularStopTimeout, "The default value for the TotalRegularStopTimeout changed, fix the test of the default value!");
     // then tests the setter
     target.TotalRegularStopTimeout = 30000;
     // and getter
     Assert.AreEqual(30000, target.TotalRegularStopTimeout);
 }