public void Should_resolve_attributed_properties_for_existing_objects()
        {
            IContainer c = new Container();
            c.RegisterType<PropertyTest1>(false);
            PropertyTest2 obj = new PropertyTest2();

            c.BuildUp<PropertyTest2>(obj);

            Assert.IsInstanceOf<PropertyTest1>(obj.t);
        }
        public void Should_properly_chain_method_calls()
        {
            //Just a really brief test, there is nothing fancy there.
            PropertyTest2 tc = new PropertyTest2();
            IContainer c = new Container()
                .RegisterType<ITestClass, TestClass>(false)
                .RegisterType<TestClass3>(false)
                .RegisterType<PropertyTest1>(true)
                .RegisterInstance<PropertyTest2>(tc);

            var result1 = c.Resolve<PropertyTest2>();
            var result2 = c.Resolve<TestClass3>();

            Assert.IsInstanceOf<PropertyTest2>(result1);
            Assert.IsNull(result1.t);
            Assert.IsInstanceOf<TestClass3>(result2);
            Assert.IsInstanceOf<TestClass>(result2.t);
        }