Exemple #1
0
 static bool IsRunning()
 {
     Thread.Sleep(500);
     return(ProcessCleanup
            .FindAll()
            .Any(x => x.Command.Contains("FakeDiffTool")));
 }
Exemple #2
0
    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}");
        }
    }
Exemple #4
0
 static bool IsRunning() =>
 ProcessCleanup
 .FindAll()
 .Any(x => x.Command.Contains("FakeDiffTool"));