Esempio n. 1
0
        public void LoadedAssemblyIsPartOfEnumeratedAssemblyList()
        {
            var wrapper  = CreateStubExecutor();
            var mate     = new TestableMultiAssemblyTestEnvironment();
            var assembly = mate.Load(wrapper);

            mate.Unload(assembly);

            Assert.Equal(0, mate.EnumerateTestAssemblies().Count());
        }
Esempio 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 LoadedAssemblyIsPartOfEnumeratedAssemblyList()
        {
            var wrapper = CreateStubExecutor();
            var mate = new TestableMultiAssemblyTestEnvironment();
            var assembly = mate.Load(wrapper);

            var assemblies = mate.EnumerateTestAssemblies();

            TestAssembly testAssembly = Assert.Single(assemblies);
            Assert.Same(assembly, testAssembly);
        }
Esempio n. 4
0
        public void LoadedAssemblyIsPartOfEnumeratedAssemblyList()
        {
            var wrapper  = CreateStubExecutor();
            var mate     = new TestableMultiAssemblyTestEnvironment();
            var assembly = mate.Load(wrapper);

            var assemblies = mate.EnumerateTestAssemblies();

            TestAssembly testAssembly = Assert.Single(assemblies);

            Assert.Same(assembly, testAssembly);
        }
        public void RemovesDisposedTestAssemblies()
        {
            var wrapper = CreateStubExecutor();
            var mate = new TestableMultiAssemblyTestEnvironment();
            var assembly = mate.Load(wrapper);

            mate.Dispose();

            Assert.False(mate.EnumerateTestAssemblies().Any());
        }
        public void LoadedAssemblyIsPartOfEnumeratedAssemblyList()
        {
            var wrapper = CreateStubExecutor();
            var mate = new TestableMultiAssemblyTestEnvironment();
            var assembly = mate.Load(wrapper);

            mate.Unload(assembly);

            Assert.Equal(0, mate.EnumerateTestAssemblies().Count());
        }