I'm working on a small project, inspired by the awesome System.IO.Abstractions
, aiming to provide a wrapper over System.Diagnostics.Process, to assist testability of anything process-related.
Where System.IO.Abstractions
provides a wrapper over the Path
, File
, Directory
types, as well as a wrapper objects over FileInfo
and DirectoryInfo
, all conveniently accessible from an IFileSystem
, mirroring the way those types exist today in the .NET framework, the System.Diagnostics.Process
type presents its own challenges when trying to create a convenient wrapper.
Your feedback on the API is, therefore, very much appreciated.
The Process
class has several static
methods for launching a new process, as well as other stuff:
void EnterDebugMode();
Process GetCurrentProcess();