public void FailingVerificationWithUnsatisfiedDependencies()
		{
			IComponentAdapter componentAdapter = new ConstructorInjectionComponentAdapter("foo", typeof (B));
			componentAdapter.Container = new DefaultPicoContainer();
			try
			{
				componentAdapter.Verify(componentAdapter.Container);
				Assert.Fail();
			}
			catch (UnsatisfiableDependenciesException)
			{
			}
		}
Exemplo n.º 2
0
        public void FailingVerificationWithUnsatisfiedDependencies()
        {
            IComponentAdapter componentAdapter = new ConstructorInjectionComponentAdapter("foo", typeof(B));

            componentAdapter.Container = new DefaultPicoContainer();
            try
            {
                componentAdapter.Verify(componentAdapter.Container);
                Assert.Fail();
            }
            catch (UnsatisfiableDependenciesException)
            {
            }
        }
Exemplo n.º 3
0
        public void SuccessfulVerificationWithNoDependencies()
        {
            InstantiatingComponentAdapter componentAdapter = new ConstructorInjectionComponentAdapter("foo", typeof(A));

            componentAdapter.Verify(componentAdapter.Container);
        }
		public void SuccessfulVerificationWithNoDependencies()
		{
			InstantiatingComponentAdapter componentAdapter = new ConstructorInjectionComponentAdapter("foo", typeof (A));
			componentAdapter.Verify(componentAdapter.Container);
		}