src/Giles.Core/Runners/TestFrameworkResolver.cs
/// <summary>
/// Inspects the passed target test assembly to see if it meets all of the requirements for
/// and of the Giles test framework runners.
/// </summary>
/// <param name="targetAssembly">Target test assembly to inspect</param>
/// <returns>A list of test framework runners which can run the tests in the target assembly</returns>
Inspects the passed target test assembly to see if it meets all of the requirements for
and of the Giles test framework runners.
Inspects the passed target test assembly to see if it meets all of the requirements for and of the Giles test framework runners .
public IEnumerable<IFrameworkRunner> Resolve(Assembly targetAssembly)
        {
            if (targetAssembly == null)
                return Enumerable.Empty<IFrameworkRunner>();
            var referencedAssemblies = targetAssembly.GetReferencedAssemblies();
            var runners =
                frameworkInspectors
                    .Where(inspector => referencedAssemblies.AnyMatchesRequirementFor(inspector.Requirement))
                    .Select(AnInstanceOfTheTestRunner);
            return runners;
        }
public IEnumerable < IFrameworkRunner > Resolve ( Assembly targetAssembly ) { if ( targetAssembly == null ) return Enumerable . Empty < IFrameworkRunner > ( ) ; var referencedAssemblies = targetAssembly . GetReferencedAssemblies ( ) ; var runners = frameworkInspectors . Where ( inspector => referencedAssemblies . AnyMatchesRequirementFor ( inspector . Requirement ) ) . Select ( AnInstanceOfTheTestRunner ) ; return runners ; }
Inspects the passed target test assembly to see if it meets all of the requirements for
and of the Giles test framework runners.
Inspects the passed target test assembly to see if it meets all of the requirements for and of the Giles test framework runners .
A list of test framework runners which can run the tests in the target assembly
A list of test framework runners which can run the tests in the target assembly
targetAssembly
Assembly
Target test assembly to inspect
Target test assembly to inspect