예제 #1
0
        private static object GetMSpecRunListener(SessionResults sessionResults)
        {
            var specificationRunListenerType = MSpecTypes.Types.First(x => x.Name == "ISpecificationRunListener");

            return(Impromptu.DynamicActLike(GilesMSpecRunListener.GetAnonymousListener(sessionResults, new List <TestResult>(), new ResultFormatterFactory()),
                                            specificationRunListenerType));
        }
예제 #2
0
 public SessionResults RunAssembly(Assembly assembly)
 {
     var runListener = new GilesMSpecRunListener();
     var runner = new AppDomainRunner(runListener, RunOptions.Default);
     runner.RunAssembly(assembly);
     return runListener.SessionResults;
 }