Пример #1
0
        public static void NUnit(this ICakeContext context, string pattern, NUnitSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var assemblies = context.Globber.GetFiles(pattern);

            NUnit(context, assemblies, settings);
        }
Пример #2
0
        public static void NUnit(this ICakeContext context, string pattern, NUnitSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var assemblies = context.Globber.GetFiles(pattern).ToArray();

            if (assemblies.Length == 0)
            {
                context.Log.Verbose("The provided pattern did not match any files.");
                return;
            }

            NUnit(context, assemblies, settings);
        }
Пример #3
0
        public static void NUnit(this ICakeContext context, IEnumerable <FilePath> assemblies, NUnitSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (assemblies == null)
            {
                throw new ArgumentNullException("assemblies");
            }

            var runner = new NUnitRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run(assemblies, settings);
        }
Пример #4
0
        public static void NUnit(this ICakeContext context, IEnumerable <string> assemblies, NUnitSettings settings)
        {
            if (assemblies == null)
            {
                throw new ArgumentNullException("assemblies");
            }
            var paths = assemblies.Select(p => new FilePath(p));

            NUnit(context, paths, settings);
        }