Пример #1
0
        public void SetWithSlidingExpirationForZeroTime()
        {
            string key      = DateTime.UtcNow.Ticks.ToString() + "_SetWithSlidingExpirationForZeroTime_SetTest";
            object expected = new object();

            ExceptionAssert.ThrowsArgGreaterThan(() => WebCache.Set(key, expected, 0), "minutesToCache", "0");
        }
Пример #2
0
 public void PrintWithInvalidEnumerationLength()
 {
     // Act & Assert
     ExceptionAssert.ThrowsArgGreaterThan(() => ObjectInfo.Print(null, enumerationLength: -1), "enumerationLength", "0");
 }