title: Unit testing named pipes
body: <p>What is the recommended way to unit test an object that publishes via <a href="http://msdn.microsoft.com/en-us/library/system.io.pipes.namedpipeserverstream.aspx" rel="nofollow noreferrer">NamedPipeServerStreams</a>?  </p>
  
  <p>My thought was to use a <a href="http://msdn.microsoft.com/en-us/library/system.io.pipes.namedpipeclientstream.aspx" rel="nofollow noreferrer">NamedPipeClientStream</a> in the unit test but the test just ends up hanging; I suspect this is due to both of them being in the same process.</p>