Exemple #1
0
        public void create_variable_should_be_through_constructor(Type concreteType, ServiceLifetime lifetime, BuildMode build, DisposeTracking disposal)
        {
            var instance = new ConstructorInstance(concreteType, concreteType, lifetime);

            instance.CreateVariable(build, new ResolverVariables(), false).Creator
            .ShouldBeOfType <ConstructorFrame>()
            .Disposal.ShouldBe(disposal);
        }