public TestRunState Run(ITestListener testListener, string assemblyFile, string cref) { if (testListener == null) { throw new ArgumentNullException("testListener"); } if (assemblyFile == null) { throw new ArgumentNullException("assemblyFile"); } FacadeOptions options = FacadeOptions.ReadFromRegistry(); FacadeTestRunState result = TestRunner.Run(new AdapterFacadeTestListener(testListener), assemblyFile, cref, options); return(FacadeUtils.ToTestRunState(result)); }
public TestRunState RunAssembly(ITestListener testListener, Assembly assembly) { if (testListener == null) { throw new ArgumentNullException("testListener"); } if (assembly == null) { throw new ArgumentNullException("assembly"); } FacadeOptions options = FacadeOptions.ReadFromRegistry(); FacadeTestRunState result = TestRunner.Run(new AdapterFacadeTestListener(testListener), GetAssemblyPath(assembly), null, options); return(FacadeUtils.ToTestRunState(result)); }