Exemple #1
0
        public void ActivatorCreatesStructs()
        {
            var activator = new ActivatorConfig().Create();

            var int1 = activator.Create <A>();

            var int2 = activator.Create <A>();
        }
Exemple #2
0
        public void ActivatorWithParameters()
        {
            var activator = new ActivatorConfig().Create();

            var a = new object[] { new A() };


            var b = activator.Create <B>(a);

            Assert.Same(a[0], b.A);
        }