public void TestCreateSettings()
		{
			OfficeApplicationHelpers.SetTestSettings(30000, 90000, true, true, true, true, false);


			OfficeApplicationCacheSettings settings = new OfficeApplicationCacheSettings();

			Assert.AreEqual(30000, settings.ShutDownTimeout);
			Assert.AreEqual(90000, settings.StartUpTimeout);
			Assert.IsTrue(settings.ExecuteBasedOnActions);
			Assert.IsFalse(settings.Synchronous);
			Assert.IsTrue(settings.Enabled(FileType.WordDocument));
			Assert.IsTrue(settings.Enabled(FileType.ExcelSheet));
			Assert.IsTrue(settings.Enabled(FileType.PowerPoint));
		}
		public void TestReadSettings()
		{
			int shutDownTimeout = 1000;
			int startUpTimeout = 2000;

			// This will create the registry if it does not exist.
			OfficeApplicationCacheSettings settings = new OfficeApplicationCacheSettings();

			// Change the settings
			OfficeApplicationHelpers.SetTestSettings(shutDownTimeout, startUpTimeout, true, false, false, false, true);

			// Re-read the settings
			settings = new OfficeApplicationCacheSettings();

			Assert.AreEqual(shutDownTimeout, settings.ShutDownTimeout);
			Assert.AreEqual(startUpTimeout, settings.StartUpTimeout);
			Assert.IsFalse(settings.ExecuteBasedOnActions);
			Assert.IsTrue(settings.Synchronous);
			Assert.IsTrue(settings.Enabled(FileType.WordDocument));
			Assert.IsFalse(settings.Enabled(FileType.ExcelSheet));
			Assert.IsFalse(settings.Enabled(FileType.PowerPoint));
		}