public void CreateInstanceResolver_WithNullParamInstanceResolvers_ShouldReturnValidInstanceResolver()
        {
            TransientLifecycle sut          = createSut();
            IRegistration      registration = createRegistration(sut);
            var constructor = getConstructor();

            Assert.NotNull(sut.CreateInstanceResolver(createFactory(), registration, constructor, null));
        }
        public void CreateInstanceResolver_WithNullConstructor_ShouldThrowArgumentNullException()
        {
            TransientLifecycle sut          = createSut();
            IRegistration      registration = createRegistration(sut);

            Assert.Throws <ArgumentNullException>(() =>
                                                  sut.CreateInstanceResolver(createFactory(), registration, null, Enumerable.Empty <IInstanceResolver>()));
        }
        public void CreateInstanceResolver_WithFactoryThatReturnsNull_ShouldThrowInvalidOperationException()
        {
            TransientLifecycle sut          = createSut();
            IRegistration      registration = createRegistration(sut);
            var constructor = getConstructor();

            Assert.Throws <InvalidOperationException>(() =>
                                                      sut.CreateInstanceResolver(new NullFactory(), registration, constructor, Enumerable.Empty <IInstanceResolver>()));
        }