public void DoesNotDisposeTransientInstances() { StubType.Reset(); var vm = this.bootstrapper.GetInstance(typeof(StubType)); this.bootstrapper.Dispose(); Assert.AreEqual(0, StubType.DisposeCount); }
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); }