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