Exemple #1
0
        public void ValueIsNull()
        {
            // act
            var eventArgs = new CacheEntryEventArgs <string>("key", null);

            // assert
            Assert.Equal("key", eventArgs.Key);
            Assert.Null(eventArgs.Value);
        }
Exemple #2
0
        public void ValueAndKeyAreSet()
        {
            // act
            var eventArgs = new CacheEntryEventArgs <string>("key", "value");

            // assert
            Assert.Equal("key", eventArgs.Key);
            Assert.Equal("value", eventArgs.Value);
        }