public void APartialCacheKeyIsGeneratedFromTheTypeSignature()
        {
            var generator = new DefaultCacheKeyGenerator();

            var type = typeof(DummyClass);
            var key = generator.GeneratePartialCacheKey(type);

            Assert.That(key, Is.EqualTo("AspectCache.Tests.DummyClass"));
        }
        public void APartialCacheKeyIsGeneratedFromTheTypeSignature()
        {
            var generator = new DefaultCacheKeyGenerator();

            var type = typeof(DummyClass);
            var key  = generator.GeneratePartialCacheKey(type);

            Assert.That(key, Is.EqualTo("AspectCache.Tests.DummyClass"));
        }
        public void APartialCacheKeyIsGeneratedFromTheMethodSignature()
        {
            var generator = new DefaultCacheKeyGenerator();

            var type = typeof(DummyClass);
            var method = type.GetMethod("CachedMethodWithSettings");
            var key = generator.GeneratePartialCacheKey(method);

            Assert.That(key, Is.EqualTo("AspectCache.Tests.DummyClass.CachedMethodWithSettings"));
        }
        public void APartialCacheKeyIsGeneratedFromTheMethodSignature()
        {
            var generator = new DefaultCacheKeyGenerator();

            var type   = typeof(DummyClass);
            var method = type.GetMethod("CachedMethodWithSettings");
            var key    = generator.GeneratePartialCacheKey(method);

            Assert.That(key, Is.EqualTo("AspectCache.Tests.DummyClass.CachedMethodWithSettings"));
        }