public TestDomainVertex GetVertex(TestDomainBase domain) { if (domain == null) throw new ArgumentNullException("domain"); TestDomainVertex v = this.domainVertices[domain] as TestDomainVertex; return v; }
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; }