예제 #1
0
        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));
        }
예제 #2
0
        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));
        }