Example #1
0
        public void DoesNotDisposeTransientInstances()
        {
            StubType.Reset();

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

            this.bootstrapper.Dispose();
            Assert.AreEqual(0, StubType.DisposeCount);
        }
Example #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);
        }