예제 #1
0
        public void TestCacheAll()
        {
            var cache = new ReflectionCache();

            cache.CacheFromBinder(this.binder);

            Assert.True(cache.Contains(typeof(MockIClassWithAttributes)));
            Assert.True(cache.Contains(typeof(MockClassWithDependencies)));
        }
예제 #2
0
        public void TestAddType()
        {
            var cache = new ReflectionCache();
            var type = typeof(MockIClassWithoutAttributes);

            cache.Add(type);

            Assert.True(cache.Contains(type));
        }