public void PortableVersionAppconfigTest()
        {
            // first option without changes
            UpgradeConfigFiles.CheckPortableInstallType(this.targetDir, false);
            string upgradedAppConfig = File.ReadAllText(appConfigFile);

            Assert.AreEqual(appConfigContent, upgradedAppConfig, "App config file is expected default");
        }
        public void UserProfileVersionLog4NetTest()
        {
            UpgradeConfigFiles.CheckPortableInstallType(targetDir, true);
            string upgradedLog4Net = File.ReadAllText(log4NetFile);
            // part of the upgraded path
            bool oldPath = upgradedLog4Net.Contains(@"\Robert_Chartier\Terminals\Data\logs\");

            Assert.IsTrue(oldPath, "Log4net config doesnt contain user profile path");
        }
        public void UserProfileVersionAppConfigTest()
        {
            // second option, which should contain the requried user profile options
            UpgradeConfigFiles.CheckPortableInstallType(targetDir, true);
            string upgradedAppConfig = File.ReadAllText(appConfigFile);
            // the only option in the file
            bool inUserProfile = upgradedAppConfig.Contains("<value>False</value>");

            Assert.IsTrue(inUserProfile, "App config doesnt contain user profile flag");
        }