public void op_Set_string_object_TimeSpan() { var obj = new WebCacheCollection(); try { var key = AlphaDecimal.Random(); obj.Set(key, new object(), new TimeSpan(123456)); Assert.True(obj.ContainsKey(key)); } finally { obj.Clear(); } }
public void op_Set_string_object_DateTime() { var obj = new WebCacheCollection(); try { var key = AlphaDecimal.Random(); obj.Set(key, new object(), DateTime.UtcNow.AddDays(1)); Assert.True(obj.ContainsKey(key)); } finally { obj.Clear(); } }