public TestDomainVertex GetVertex(TestDomainBase domain) { if (domain == null) { throw new ArgumentNullException("domain"); } TestDomainVertex v = this.domainVertices[domain] as TestDomainVertex; return(v); }
public TestDomainVertex GetVertex(string assemblyName) { if (assemblyName == null) { throw new ArgumentNullException("assemblyName"); } TestDomainVertex v = this.assemblyNameVertices[assemblyName] as TestDomainVertex; return(v); }
public void CreateDependencies() { foreach (TestDomainVertex target in this.Graph.Vertices) { foreach (string sourceName in target.Domain.TestEngine.Explorer.GetDependentAssemblies()) { TestDomainVertex source = this.assemblyNameVertices[sourceName] as TestDomainVertex; if (source == null) { continue; } if (this.graph.ContainsEdge(source, target)) { continue; } this.graph.AddEdge(source, target); } } }
public TestDomainVertex AddDomain(TestDomainBase domain) { if (domain == null) { throw new ArgumentNullException("domain"); } TestDomainVertex v = this.domainVertices[domain] as TestDomainVertex; if (v != null) { return(v); } v = (TestDomainVertex)this.graph.AddVertex(); v.Domain = domain; this.domainVertices.Add(domain, v); // load domain domain.Load(); /* * MLS 12/21/05 - Tell the test engine to add a console listener, * if started from console app with verbose option. * Note that the test engine is actually a remoting proxy to the remote test engine at this point. */ if (this.verbose) { domain.TestEngine.AddConsoleListener(); } // adding path foreach (string assemblyPath in this.AssemblyPaths) { domain.TestEngine.Resolver.AddHintDirectory(assemblyPath); } this.assemblyNameVertices.Add(domain.TestEngine.Explorer.AssemblyName, v); return(v); }