Пример #1
0
        private void CheckTimeSpanToTextConversions(int expectedNumberOfValuesToCheck, Dictionary <TimeSpan, string> valuesToCheck, bool capped)
        {
            Assert.AreEqual(expectedNumberOfValuesToCheck, valuesToCheck.Count);

            foreach (KeyValuePair <TimeSpan, string> value in valuesToCheck)
            {
                Assert.AreEqual(value.Value, LicenseAlert.GetLicenseTimeLeftString(value.Key, capped));
            }
        }
Пример #2
0
 public void CappedTimeToStringConversion(KeyValuePair <TimeSpan, string> kvp)
 {
     Assert.AreEqual(kvp.Value, LicenseAlert.GetLicenseTimeLeftString(kvp.Key, true));
 }