static bool IsRunning() { Thread.Sleep(500); return(ProcessCleanup .FindAll() .Any(x => x.Command.Contains("FakeDiffTool"))); }
public void Find() { var enumerable = ProcessCleanup.FindAll().ToList(); foreach (var x in enumerable) { Debug.WriteLine($"{x.Process} {x.Command}"); } }
public void Find() { var list = ProcessCleanup.FindAll().ToList(); // new processes have large Ids Assert.True(list[0].Process > list[1].Process); foreach (var x in list) { Debug.WriteLine($"{x.Process} {x.Command}"); } }
static bool IsRunning() => ProcessCleanup .FindAll() .Any(x => x.Command.Contains("FakeDiffTool"));