public void GetProcesses_ReturnsNonEmptyList() { var pv = new ProcessViewer(); var processes = pv.GetProcesses(); Assert.NotEmpty(processes); }
public void GetCurrentProcess_ReturnsNonEmptyString() { var pv = new ProcessViewer(); var process = pv.GetCurrentProcess(); Assert.NotNull(process); }
public override void Execute(IPluginHost pluginHost, DroidExplorer.Core.IO.LinuxDirectoryInfo currentDirectory, string[] args) { ProcessViewer.StartPosition = FormStartPosition.Manual; ProcessViewer.Left = this.PluginHost.Right; ProcessViewer.Top = this.PluginHost.Top; if (!ProcessViewer.Visible) { ProcessViewer.Show(this.PluginHost.GetHostWindow( )); } }
static void Main(string[] args) { var processViewer = new ProcessViewer(); var processes = processViewer.GetProcesses(); foreach (var process in processes) { Console.WriteLine(process); } }