public void Fork() { using (var runner = new ProgramRunner()) { mainExecuted = false; runner.Fork(Main, "fork"); runner.TerminateFork(); Assert.True(mainExecuted); } }