modules/platforms/dotnet/Apache.Ignite.Core.Tests/TestUtils.Windows.cs
/// <summary>
/// Runs the test in new process.
/// </summary>
Runs the test in new process.
Runs the test in new process .
[SuppressMessage("ReSharper", "AssignNullToNotNullAttribute")]
        public static void RunTestInNewProcess(string fixtureName, string testName)
        {
            var procStart = new ProcessStartInfo
            {
                FileName = typeof(TestUtils).Assembly.Location,
                Arguments = fixtureName + " " + testName,
                CreateNoWindow = true,
                UseShellExecute = false,
                RedirectStandardOutput = true,
                RedirectStandardError = true
            };
            var proc = System.Diagnostics.Process.Start(procStart);
            Assert.IsNotNull(proc);
            try
            {
                IgniteProcess.AttachProcessConsoleReader(proc);
                Assert.IsTrue(proc.WaitForExit(19000));
                Assert.AreEqual(0, proc.ExitCode);
            }
            finally
            {
                if (!proc.HasExited)
                {
                    proc.Kill();
                }
            }
        }
[ SuppressMessage ( " " , " " ) ] public static void RunTestInNewProcess ( string fixtureName , string testName ) { var procStart = new ProcessStartInfo { FileName = typeof ( TestUtils ) . Assembly . Location , Arguments = fixtureName + " " + testName , CreateNoWindow = true , UseShellExecute = false , RedirectStandardOutput = true , RedirectStandardError = true } ; var proc = System . Diagnostics . Process . Start ( procStart ) ; Assert . IsNotNull ( proc ) ; try { IgniteProcess . AttachProcessConsoleReader ( proc ) ; Assert . IsTrue ( proc . WaitForExit ( 19000 ) ) ; Assert . AreEqual ( 0 , proc . ExitCode ) ; } finally { if ( ! proc . HasExited ) { proc . Kill ( ) ; } } }
Runs the test in new process.
Runs the test in new process .
fixtureName
string
testName
string