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)); }
public void ReflectionCacheRemove_RemoveType_Correct() { //Arrange ReflectionCache reflectionCache = new ReflectionCache(); //Act reflectionCache.Remove(typeof(someClass_f)); //Assert Assert.AreEqual(false, reflectionCache.Contains(typeof(someClass_f))); }