So first of all you need to generate the Shim for the Process class.
After you create the Fakes for System you should see a folder called 'Fakes'. Inside that folder you need to edit the System.fakes file so that it will generate the Shims for System.Diagnostics.Process:
<Fakes xmlns="http://schemas.microsoft.com/fakes/2011/" Diagnostic="true">
<Assembly Name="System" Version="4.0.0.0"/>
<ShimGeneration>
<Add FullName="System.Diagnostics.Process"/>
</ShimGeneration>
</Fakes>
After compiling you will be able to see in Object Explorer that Fakes Shims for Process have been genereated.
To use the Shim in a test you need to configure the Fake Process.Start delegate. A test might end up looking something like this:
using (ShimsContext.Create())
{
System.Diagnostics.Fakes.ShimProcess.StartString = s =>
{
Console.WriteLine(s);
return new StubProcess();
};
// A call to your method under test that exectues Process.Start rather than calling it directly
var process = Process.Start("SomeString");
Assert.IsTrue(process is StubProcess);
}
Obviously you might want to include something more relevant to your scenario test in your delegate and assertions.
See MSDN link