Beispiel #1
0
		public ActionSet()
		{
			try
			{
				m_configuration = new WorkshareUpgradeConfigurationTranslater();
			}
			catch (Exception ex)
			{
				Logger.LogError(ex, "Unable to create Upgrade Configuration Translator");
			}
		}
Beispiel #2
0
		public void TestGroupOptions()
		{
			WorkshareUpgradeConfigurationTranslater configuration = new WorkshareUpgradeConfigurationTranslater();
			Dictionary<string, WorkshareUpgradeConfigurationOptionsOption> groupOptions = StaticShared.GetGroupOptions(configuration.GetOptions(), "FixPack");
			Assert.IsTrue(groupOptions.Count == 33);
		}
Beispiel #3
0
		public void ValidateUpgradeMapOptionsAreInSyncWithOptionApiOptions()
		{
			WorkshareUpgradeConfigurationTranslater configuration = new WorkshareUpgradeConfigurationTranslater();
			Dictionary<string, WorkshareUpgradeConfigurationOptionsOption> upgradeConfigurationOptions = configuration.Options;
			Dictionary<string, OptionMapOption> workshare7Options = Workshare7OptionsTranslater.GetOptions();

			StringBuilder sb = new StringBuilder();
			int count = 0;
			foreach (KeyValuePair<string, WorkshareUpgradeConfigurationOptionsOption> kvp in upgradeConfigurationOptions)
			{
				if (!workshare7Options.ContainsKey(kvp.Value.Name.ToLower()))
				{
					sb.Append(string.Format("{0}, ", kvp.Value.Name));
					++count;
				}
			}
			Assert.IsTrue(count == 0,
			              string.Format(
			              	"The Upgrade XML Map contains Options that was not found in the Options API Map. The Upgrade XML Map should be updated to reflect the changes to the Options API Map. The Options in the Upgrade XML Map are: {0}",
			              	sb));
		}
Beispiel #4
0
		private Dictionary<string, WorkshareUpgradeConfigurationOptionsOption> GetOptions()
		{
			WorkshareUpgradeConfigurationTranslater configuration = new WorkshareUpgradeConfigurationTranslater();
			return configuration.GetOptions();
		}
Beispiel #5
0
		private List<string> GetExcludeList()
		{
			WorkshareUpgradeConfigurationTranslater translater = new WorkshareUpgradeConfigurationTranslater();
			return translater.RegistryKeyExclusions;
		}