public void Dispose_IsIdempotent()
 {
     using (var receiver = new StandardOutputReceiver(Mock.Of <IPluginProcess>()))
     {
         receiver.Dispose();
         receiver.Dispose();
     }
 }
        public void Connect_ThrowsIfDisposed()
        {
            var receiver = new StandardOutputReceiver(Mock.Of <IPluginProcess>());

            receiver.Dispose();

            var exception = Assert.Throws <ObjectDisposedException>(() => receiver.Connect());

            Assert.Equal(nameof(StandardOutputReceiver), exception.ObjectName);
        }