public void Restart_if_process_exited_with_non_zero_code()
{
ArrangeTestExecutable(3);
_e.Copy(ExecutePath);
_e.Execute();
_e.Wait(TimeSpan.FromSeconds(1));
_e.Ping();
_e.Wait(TimeSpan.FromSeconds(1));
Assert.That(File.ReadAllText(Path.Combine(ExecutePath, ExeName, "file.txt")), Is.EqualTo("2"));
}