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); }
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); }
public void LicenseValidityCheck() { _word.LicenseValidityCheck(); Assert.Fail(); }