public void TestCacheAndInject() { var dependency = new DependencyContainer(); Dummy dummy = new Dummy(); Assert.IsNull(dummy.Dependency); dependency.CacheAndInject(dummy); Assert.AreEqual(dummy, dependency.Get <Dummy>()); Assert.AreEqual(dependency, dummy.Dependency); }