Exemplo n.º 1
0
 public void AssemblyStarted(Assembly assembly)
 {
     passed  = 0;
     failed  = 0;
     skipped = 0;
     inner.AssemblyStarted(assembly);
 }
Exemplo n.º 2
0
        AssemblyResult Run(RunContext runContext, IEnumerable <Convention> conventions, params Type[] candidateTypes)
        {
            var assemblyResult = new AssemblyResult(runContext.Assembly.Location);

            listener.AssemblyStarted(runContext.Assembly);

            foreach (var convention in conventions)
            {
                var conventionResult = convention.Execute(listener, candidateTypes);

                assemblyResult.Add(conventionResult);
            }

            listener.AssemblyCompleted(runContext.Assembly, assemblyResult);

            return(assemblyResult);
        }
Exemplo n.º 3
0
        AssemblyResult Run(Assembly assembly, IEnumerable <Convention> conventions, params Type[] candidateTypes)
        {
            var assemblyResult = new AssemblyResult(assembly.Location);
            var assemblyInfo   = new AssemblyInfo(assembly);

            listener.AssemblyStarted(assemblyInfo);

            foreach (var convention in conventions)
            {
                var conventionResult = Run(convention, candidateTypes);

                assemblyResult.Add(conventionResult);
            }

            listener.AssemblyCompleted(assemblyInfo, assemblyResult);

            return(assemblyResult);
        }