BuildRelease.Program.RunUnitTest C# (CSharp) Method

RunUnitTest() public static method

Runs the unit tester on the specified assembly.
Called from extern assemblies.
public static RunUnitTest ( string assembly ) : void
assembly string
return void
        public static void RunUnitTest(string assembly)
        {
            // Run the unit tester.
            try
            {
                new Runner(Google.Build.Tester.Program.BinPath, assembly).Run();
            }
            catch (ExternalException ex)
            {
                CommandLine.WriteError(" {0} tests failed.", ex.ErrorCode < 0 ? "Loading" : ex.ErrorCode.ToString());
                if (!CommandLine.RequestUserChoice("Do you want to continue anyway?"))
                {
                    throw;
                }
            }
        }