public void RemovesDisposedTestAssemblies() { var wrapper = CreateStubExecutor(); var mate = new TestableMultiAssemblyTestEnvironment(); var assembly = mate.Load(wrapper); mate.Dispose(); Assert.False(mate.EnumerateTestAssemblies().Any()); }
public void DisposesTestAssembliesWhichDisposesWrapper() { var wrapper = CreateStubExecutor(); var mate = new TestableMultiAssemblyTestEnvironment(); var assembly = mate.Load(wrapper); mate.Dispose(); Assert.True(wrapper.Dispose__Called); }