public void DoNotProduceUpdateEventsForOtherApplications()
        {
            TestingDispatcher controlledDispatcher = new TestingDispatcher();

            controlledDispatcher.DeployEvent += new DeployEventHandler(controlledDispatcher_DeployEvent);
            watcher.StartWatching(controlledDispatcher);
            string subDir = Path.Combine(anotherAppFullPath, "foo");

            Directory.CreateDirectory(subDir);
            using (File.Create(Path.Combine(subDir, "foo.bar"))) {}
            dispatched = false;
            controlledDispatcher.PerformDispatch(null);
            Assert.IsFalse(dispatched);
        }
        public void ProduceUpdateEventsForWatchedApplication()
        {
            TestingDispatcher controlledDispatcher = new TestingDispatcher();

            controlledDispatcher.DeployEvent += new DeployEventHandler(controlledDispatcher_DeployEvent);
            watcher.StartWatching(controlledDispatcher);
            string subDir = Path.Combine(appFullPath, "foo");

            Directory.CreateDirectory(subDir);
            controlledDispatcher.WaitAndPerformDispatch(null);

            using (File.Create(Path.Combine(subDir, "foo.bar"))) {}
            controlledDispatcher.WaitAndPerformDispatch(null);
        }
		public void DoNotProduceUpdateEventsForOtherApplications()
		{
            TestingDispatcher controlledDispatcher = new TestingDispatcher();
            controlledDispatcher.DeployEvent += new DeployEventHandler(controlledDispatcher_DeployEvent);
            watcher.StartWatching(controlledDispatcher);
            string subDir = Path.Combine(anotherAppFullPath, "foo");
            Directory.CreateDirectory(subDir);
            using (File.Create(Path.Combine (subDir, "foo.bar"))) {}
            dispatched = false;
            controlledDispatcher.PerformDispatch(null);
            Assert.IsFalse(dispatched);
        }
		public void ProduceUpdateEventsForWatchedApplication()
		{
            TestingDispatcher controlledDispatcher = new TestingDispatcher();
            controlledDispatcher.DeployEvent += new DeployEventHandler(controlledDispatcher_DeployEvent);
            watcher.StartWatching(controlledDispatcher);
            string subDir = Path.Combine(appFullPath, "foo");
            Directory.CreateDirectory(subDir);
            controlledDispatcher.WaitAndPerformDispatch(null);

            using (File.Create(Path.Combine (subDir, "foo.bar"))) {}
            controlledDispatcher.WaitAndPerformDispatch(null);
        }