Ejemplo n.º 1
0
        public void SpySettings_ToggleLanguage()
        {
            AppLanguageEnum oldLanguage = SpySettings.Language;

            //toggle to a different language
            SpySettings.Language = (oldLanguage == AppLanguageEnum.English) ? AppLanguageEnum.Chinese : AppLanguageEnum.English;

            SpySettings.SaveUserSettings();

            LPConfig.ReloadConfig();

            Assert.AreNotEqual(oldLanguage, SpySettings.Language, "The toggled the language value should be different");
        }
Ejemplo n.º 2
0
        public void SpySettings_ToggleCaptureSnapshots()
        {
            bool captureSnapshots = SpySettings.CaptureSnapshots;

            //default should be true;
            Assert.AreEqual(true, captureSnapshots);

            //toggle to a different language
            SpySettings.CaptureSnapshots = !captureSnapshots;

            SpySettings.SaveUserSettings();

            LPConfig.ReloadConfig();

            Assert.AreNotEqual(captureSnapshots, SpySettings.CaptureSnapshots, "The toggled the CaptureSnapshots setting should be different");
        }