public void TestCacheAll() { var cache = new ReflectionCache(); cache.CacheFromBinder(this.binder); Assert.True(cache.Contains(typeof(MockIClassWithAttributes))); Assert.True(cache.Contains(typeof(MockClassWithDependencies))); }
public void TestAddType() { var cache = new ReflectionCache(); var type = typeof(MockIClassWithoutAttributes); cache.Add(type); Assert.True(cache.Contains(type)); }