Example #1
0
        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.UTF8;
            NUnitDirect.RunTestsOnAssembly(typeof(TestsProgram).Assembly);

            if (args.Contains("--wait"))
            {
                Console.WriteLine("Press Enter to exit.");
                Console.ReadLine();
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            bool wait = !args.Contains("--no-wait");

            NUnitDirect.RunTestsOnAssembly(Assembly.GetEntryAssembly());

            if (wait)
            {
                Console.WriteLine("Press Enter to exit.");
                Console.ReadLine();
            }
        }
Example #3
0
        static void Main(string[] args)
        {
            bool wait    = !args.Contains("--no-wait");
            bool notimes = args.Contains("--no-times");

            string filter = null;
            var    pos    = args.IndexOf("--filter");

            if (pos != -1 && args.Length > pos + 1)
            {
                filter = args[pos + 1];
            }

            Console.OutputEncoding = Encoding.UTF8;
            NUnitDirect.RunTestsOnAssembly(Assembly.GetEntryAssembly(), notimes, filter);

            if (wait)
            {
                Console.WriteLine("Press Enter to exit.");
                Console.ReadLine();
            }
        }