Exemplo n.º 1
0
        public static void NUnit3(this ICakeContext context, string pattern, NUnit3Settings 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;
            }

            NUnit3(context, assemblies, settings);
        }
Exemplo n.º 2
0
        public static void NUnit3(this ICakeContext context, IEnumerable <FilePath> assemblies, NUnit3Settings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (assemblies == null)
            {
                throw new ArgumentNullException("assemblies");
            }

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

            runner.Run(assemblies, settings);
        }
Exemplo n.º 3
0
        public static void NUnit3(this ICakeContext context, IEnumerable <string> assemblies, NUnit3Settings settings)
        {
            if (assemblies == null)
            {
                throw new ArgumentNullException("assemblies");
            }
            var paths = assemblies.Select(p => new FilePath(p));

            NUnit3(context, paths, settings);
        }