Exemplo n.º 1
0
        public void InvalidationEventArgsConstructor()
        {
            tlog.Debug(tag, $"InvalidationEventArgsConstructor START");

            var testingTarget = new InvalidationEventArgs(InvalidationTrigger.Undefined);

            Assert.IsNotNull(testingTarget, "Can't create success object InvalidationEventArgs.");
            Assert.IsInstanceOf <InvalidationEventArgs>(testingTarget, "Should return InvalidationEventArgs instance.");

            Assert.AreEqual(InvalidationTrigger.Undefined, testingTarget.Trigger, "Should be equal");

            tlog.Debug(tag, $"InvalidationEventArgsConstructor END");
        }
Exemplo n.º 2
0
 static void CacheEvictionListener(object sender, InvalidationEventArgs e)
 {
     cacheEvictions++;
 }