public void RemovesDisposedTestAssemblies()
        {
            var wrapper = CreateStubExecutor();
            var mate = new TestableMultiAssemblyTestEnvironment();
            var assembly = mate.Load(wrapper);

            mate.Dispose();

            Assert.False(mate.EnumerateTestAssemblies().Any());
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 4
0
        public void DisposesTestAssembliesWhichDisposesWrapper()
        {
            var wrapper  = CreateStubExecutor();
            var mate     = new TestableMultiAssemblyTestEnvironment();
            var assembly = mate.Load(wrapper);

            mate.Dispose();

            Assert.True(wrapper.Dispose__Called);
        }