public void MethodInTypeNotRegisteredShouldNotSatisfyRequirement()
        {
            WindsorContainer container = new WindsorContainer();
            DeclaringTypeMustBeRegisteredInContainer requirement = new DeclaringTypeMustBeRegisteredInContainer(container.Kernel);

            GetTestMethodInfo().ShouldNotSatisfy(requirement);
        }
        public void MethodInTypeRegisteredForItselfShouldSpecifyRequirement()
        {
            WindsorContainer container = new WindsorContainer();
            DeclaringTypeMustBeRegisteredInContainer requirement = new DeclaringTypeMustBeRegisteredInContainer(container.Kernel);

            container.Register(Component.For <TestClass>().ImplementedBy <TestClass>());
            GetTestMethodInfo().ShouldSatisfy(requirement);
        }
        public void MethodInGenericTypeRegisteredForItselfShouldSpecifyRequirement()
        {
            WindsorContainer container = new WindsorContainer();
            DeclaringTypeMustBeRegisteredInContainer requirement = new DeclaringTypeMustBeRegisteredInContainer(container.Kernel);
            Type classType = typeof(TestClassGeneric <>);

            container.Register(Component.For(classType).ImplementedBy(classType));
            GetGenericClassTestMethodInfo().ShouldSatisfy(requirement);
            GetGenericClassTestMethodInfo <int>().ShouldSatisfy(requirement);
        }