Пример #1
0
        public void RunCountResetsAfterVersionChange()
        {
            var reviewHelper = new ReviewHelper();

            reviewHelper.SuggestReview();
            reviewHelper.SuggestReview();
            reviewHelper.SuggestReview();
            reviewHelper.SuggestReview();

            Assert.AreEqual(SettingsManager.Get <int>("RunCount"), 4);

            SettingsManager.Set("Version", "1.1.1.1");
            reviewHelper.SuggestReview();

            Assert.AreEqual(SettingsManager.Get <int>("RunCount"), 1);
        }
Пример #2
0
        public void RunCountIncrementsAfterPromptingForReview()
        {
            var reviewHelper = new ReviewHelper();

            reviewHelper.SuggestReview();

            Assert.AreEqual(SettingsManager.Get <int>("RunCount"), 1);
        }