예제 #1
0
        public void LicenseValidityCheck_LicenseNotExpiries_ExpectedLevelHasNotChanged(LicenseLevels expectedLevel)
        {
            WordLeo word = CreateWordLeo(expectedLevel);

            word.progress.lastRepeat = DateTime.Now - new TimeSpan(0, 1, 0);
            word.LicenseValidityCheck();
            Assert.AreEqual(expectedLevel, word.progress.license);
        }
예제 #2
0
        public void LicenseValidityCheck_LicenseExpiries_ExpectedReducedLevelByOne(LicenseLevels actualLevel)
        {
            WordLeo word = CreateWordLeo(actualLevel);

            word.progress.lastRepeat = DateTime.Now - new TimeSpan(0, LicenseTimeout.Level_9 + 5, 0);
            word.LicenseValidityCheck();
            Assert.AreEqual(actualLevel - 1, word.progress.license);
        }
예제 #3
0
 public void LicenseValidityCheck()
 {
     _word.LicenseValidityCheck();
     Assert.Fail();
 }