Ejemplo n.º 1
0
        public void DoesNotDisposeTransientInstances()
        {
            StubType.Reset();

            var vm = this.bootstrapper.GetInstance(typeof(StubType));

            this.bootstrapper.Dispose();
            Assert.AreEqual(0, StubType.DisposeCount);
        }
Ejemplo n.º 2
0
        public void DoesNotDisposeTransientInstances()
        {
            if (!this.Autobinds)
            {
                Assert.Ignore("Autobinding not supported");
            }

            StubType.Reset();

            var vm = this.bootstrapper.GetInstance(typeof(StubType));

            this.bootstrapper.Dispose();
            Assert.AreEqual(0, StubType.DisposeCount);
        }