Ejemplo n.º 1
0
        public void ChooseConstructorWithLongestParamatereList()
        {
            SimpleContainer c = new SimpleContainer();

            c.RegisterType <IBar, Bar>(false);
            IBar b1 = c.Resolve <IBar>();

            Assert.Equal(typeof(Bar), b1.GetType());
            Assert.Equal(1, b1.getA());
            Assert.Equal(1, b1.getB());
        }